Also, none of our iterable functions take an async function, including find.
We can just add generics for that case, ex:
any = generic name: "any"
generic any, isAsyncFunction, isIterable, ( p, it ) ->
for i in it
return true if await p i
false
generic any, isRegularFunction, isIterable, ( p, it ) ->
for i in it
return true if p i
false
We have
find
but that's not quite the same.Also, none of our iterable functions take an async function, including
find
.We can just add generics for that case, ex: