ndarray
ndarray copied to clipboard
Add Zip::any
trafficstars
I find it strange that ndarray offers Zip::all but not Zip::any. Of course we can replace this function with normal iteration tools from std and itertools, but Zip is the by far fastest horse around.
I checked with Python and C++ for the Returns false if the input arrays are empty behavior.
any(p) is the same as !all(!p) and I've previously been against bloating the list of adaptors here, but it seems fine.
Thanks!