Add some synctatic sugar
This commit is contained in:
parent
0033fed73e
commit
2c051c0b3d
2 changed files with 6 additions and 4 deletions
|
|
@ -7,3 +7,5 @@ let concatGens (gens: Gen<'a list> list) : Gen<'a list> =
|
|||
match gens with
|
||||
| [] -> Gen.constant []
|
||||
| first :: rest -> rest |> List.fold (fun accGen g -> Gen.map2 (@) accGen g) first
|
||||
|
||||
let (=<<) m f = Gen.bind m f
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue