tablecloth icon indicating copy to clipboard operation
tablecloth copied to clipboard

Add Option.unwrapLazy

Open Dean177 opened this issue 5 years ago • 1 comments

This should work the same way as Option.unwrap but the default value should be a 'a lazy rather than a 'a

getLazy : 'a option -> default:('a Lazy.t) -> 'a

Dean177 avatar Jun 18 '20 18:06 Dean177

Should this function raise exceptions if Lazy.force default raises one?

pm5 avatar Jun 16 '22 02:06 pm5