Last active
February 4, 2019 15:43
-
-
Save Gbury/5dfc1699f032aead4750238db7c823a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let rec flat_map_rec f s = | |
Seq.flat_map (fun x -> | |
match f x with | |
| `Ok -> Seq.return x | |
| `Seq s' -> flat_map_rec f s' | |
) s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment