Skip to content

Commit

Permalink
FABLE and NET45
Browse files Browse the repository at this point in the history
  • Loading branch information
wallymathieu committed Nov 11, 2024
1 parent 617c009 commit b6a094a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/FSharpPlus/Control/Functor.fs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ type Iterate =
static member Iterate (x: Lazy<'T> , action) = action x.Value : unit
static member Iterate (x: seq<'T> , action) = Seq.iter action x
static member Iterate (x: option<'T> , action) = Option.iter action x
#if !NET45 && !FABLE_COMPILER_3
static member Iterate (x: voption<'T>, action) = ValueOption.iter action x
#endif
static member Iterate (x: list<'T> , action) = List.iter action x
static member Iterate ((_: 'W, a: 'T), action) = action a :unit
static member Iterate (x: 'T [] , action) = Array.iter action x
Expand All @@ -42,7 +44,7 @@ type Iterate =
static member Iterate (x: Async<'T> , action: 'T -> unit) = (x |> Async.map action |> Async.AsTask).Wait ()
#endif
static member Iterate (x: Result<'T, 'E> , action) =
#if !NET45
#if !NET45 && !FABLE_COMPILER_3
Result.iter action x
#else
match x with
Expand Down

0 comments on commit b6a094a

Please sign in to comment.