Skip to content

Commit

Permalink
more documentation for map_val, suggested by Stephen Dolan
Browse files Browse the repository at this point in the history
  • Loading branch information
gasche committed Jan 27, 2021
1 parent eb85bd2 commit 38d3725
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stdlib/lazy.mli
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ val map_val : ('a -> 'b) -> 'a t -> 'b t
a suspension, but on the other hand it perform more work eagerly
that may not be useful if you never force the function result.
If [f] raises an exception, it will be raised immediately when
[is_val x], or raised only when forcing the thunk otherwise.
If [map_val f x] returns a non-exception result, then
[is_map (map_val f x)] is equal to [is_val x].
@since 4.13.0 *)


Expand Down

0 comments on commit 38d3725

Please sign in to comment.