mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-14 07:02:49 +00:00
kz for array
This commit is contained in:
parent
a041016446
commit
554e9c5cfc
@ -447,6 +447,11 @@ template<class T> vector<T> kz(vector<T> v) {
|
|||||||
for(auto& el: v) el = kz(el);
|
for(auto& el: v) el = kz(el);
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class T, size_t N> array<T,N> kz(array<T,N> v) {
|
||||||
|
for(auto& el: v) el = kz(el);
|
||||||
|
return v;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
EX string pick123() { return cts('1' + rand() % 3); }
|
EX string pick123() { return cts('1' + rand() % 3); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user