1
0
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:
Zeno Rogue 2023-06-21 15:09:46 +02:00
parent a041016446
commit 554e9c5cfc

View File

@ -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); }