Skip to content

Commit

Permalink
made failing test pass by implementing Property.select via bind hedge…
Browse files Browse the repository at this point in the history
  • Loading branch information
TysonMN committed Aug 25, 2021
1 parent ec67d0d commit c4c7fcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Hedgehog/Linq/Property.fs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ type PropertyExtensions private () =

[<Extension>]
static member Select (property : Property<'T>, mapper : Func<'T, 'TResult>) : Property<'TResult> =
Property.map mapper.Invoke property
property
|> Property.bind (Property.ofThrowing mapper.Invoke)

[<Extension>]
static member Select (property : Property<'T>, mapper : Action<'T>) : Property =
Expand Down

0 comments on commit c4c7fcb

Please sign in to comment.