mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-21 18:23:15 +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);
|
||||
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
|
||||
|
||||
EX string pick123() { return cts('1' + rand() % 3); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user