kz for array

This commit is contained in:
Zeno Rogue 2023-06-21 15:09:46 +02:00
parent a041016446
commit 554e9c5cfc
1 changed files with 5 additions and 0 deletions

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