Skip to content

Commit

Permalink
made failing test pass by implementing Property.select via bind #317
Browse files Browse the repository at this point in the history
  • Loading branch information
TysonMN authored and adam-becker committed Sep 4, 2021
1 parent 5e71457 commit 8094f5d
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 8094f5d

Please sign in to comment.