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 Apr 14, 2021
1 parent 9ee6e6d commit 3d93b0b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stdlib/lazy.mli
Expand Up @@ -99,6 +99,12 @@ val map_val : ('a -> 'b) -> 'a t -> 'b t
a suspension, but on the other hand it performs 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] does not raise an exception, then
[is_val (map_val f x)] is equal to [is_val x].
@since 4.13.0 *)


Expand Down

0 comments on commit 3d93b0b

Please sign in to comment.