Skip to content

Commit

Permalink
Deleted ListGen
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmaturtle committed Feb 7, 2021
1 parent eccad94 commit bd1db77
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Hedgehog.Xunit/InternalLogic.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@ module internal InternalLogic

open Hedgehog

module ListGen = // https://github.com/hedgehogqa/fsharp-hedgehog/pull/260
let traverse (f: 'a -> Gen<'b>) (ma: list<'a>) : Gen<list<'b>> =
let rec loop input output =
match input with
| [] -> output |> List.rev |> Gen.constant
| a :: input ->
gen {
let! b = f a
return! loop input (b :: output)
}
loop ma []

let sequence ma = traverse id ma

module Option =
let requireSome msg =
function
Expand Down

0 comments on commit bd1db77

Please sign in to comment.