You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All[T any](collection []T, predicate func (T) bool) bool would return true if all the elements pass the predicate and short-circuit to false otherwise.
Any[T any](collection []T, predicate func (T) bool) bool would return false if none the elements pass the predicate and short-circuit to true otherwise.
These are common functions in Rust, Haskell, many other languages.
The text was updated successfully, but these errors were encountered:
All[T any](collection []T, predicate func (T) bool) bool
would returntrue
if all the elements pass the predicate and short-circuit tofalse
otherwise.Any[T any](collection []T, predicate func (T) bool) bool
would returnfalse
if none the elements pass the predicate and short-circuit totrue
otherwise.These are common functions in Rust, Haskell, many other languages.
The text was updated successfully, but these errors were encountered: