Repeatedly apply a function to a value.
Repeatedly apply a function to a value while the value satisfies the test.
Loop.while (\ n -> n < 15) ((+) 5) 2 == 17Repeatedly apply a function to a value while the function returns 'Just'.
f : Int -> Maybe Int
f n =
if n < 15
then Just (n + 5)
else Nothing
Loop.whileJust f 2 == 17
Repeatedly apply a function to a value
ntimes.