Hello all, I have a question regarding “find{ }” ....
# getting-started
j
Hello all, I have a question regarding “find{ }” . I checked the code in stdlib and it returns the element or null. I want to return true/false when iterating over a list and certain condition is met. This is what I thought (I bet there is a better way to cover the null case...), any idea??? :
s
Have you tried
any
instead of
find
j
wow thanks
🙂
k
Looks like you actually want
none
.
👍 1
j
Thanks @karelpeeters