find p = foldRight (\a b -> if p a then Full a else b) Empty
-
This Tweet is unavailable.
-
-
This Tweet is unavailable.
-
probably if we also add use `filter` or similar for Optional (but this function is not provided).
0 replies 0 retweets 0 likes -
This Tweet is unavailable.
-
find needs to work on an infinite list
0 replies 0 retweets 0 likes -
This Tweet is unavailable.
-
foldLeft is "for loop" foldRight is "replace the constructors"
3 replies 13 retweets 31 likes
Replying to @puffnfresh @jb9i
foldLeft f z list ~ { var r = z for(el : list) { r = f(r, el) } return r }
3:49 PM - 11 Jun 2018
0 replies
3 retweets
5 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.