ndarray icon indicating copy to clipboard operation
ndarray copied to clipboard

Add Zip::any

Open nilgoyette opened this issue 3 years ago • 1 comments
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.

nilgoyette avatar Nov 08 '22 02:11 nilgoyette

any(p) is the same as !all(!p) and I've previously been against bloating the list of adaptors here, but it seems fine.

bluss avatar May 06 '23 19:05 bluss

Thanks!

bluss avatar Mar 10 '24 13:03 bluss