Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/FSharpPlus/Operators.fs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,18 @@ module Operators =
/// <category index="1">Functor</category>
let inline iter (action: 'T->unit) (source: '``Functor<'T>``) : unit = Iterate.Invoke action source

/// <summary>
/// Replaces a functor value with the supplied one, ignoring the original value.
/// </summary>
/// <category index="1">Functor</category>
let inline (|!>) (source: '``Functor<'T>``) (value: 'U) : '``Functor<'U>`` = Map.Invoke (fun _ -> value) source

/// <summary>
/// Replaces a functor value with the supplied one, ignoring the original value.
/// </summary>
/// <category index="1">Functor</category>
let inline (<!|) (value: 'U) (source: '``Functor<'T>``) : '``Functor<'U>`` = Map.Invoke (fun _ -> value) source

/// <summary>
/// Un-zips (un-tuple) two functors.
/// </summary>
Expand Down
Loading