An iterator function with a break option would be very useful, too.
Even the current maps:fold function could be modified to allow break:
fold(Fun, Init, Map) -> Acc
Types:
Fun = fun((K, V, AccIn) -> AccOut)
modify to:
Fun = fun((K, V, AccIn) -> AccOut | {break, AccOut})
?