You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/FSharpPlus/Extensions/Choice.fs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -61,8 +61,8 @@ module Choice =
61
61
/// <returns>A result of the output type of the binder.</returns>
62
62
letbind(binder:'T->Choice<'U,'T2>)(source:Choice<'T,'T2>)=match source with Choice1Of2 v -> binder v | Choice2Of2 e -> Choice2Of2 e
63
63
64
-
[<System.Obsolete("Use Choice.bindChoice2Of2")>]
65
-
let inlinecatch(f:'t ->_)=function Choice1Of2 v -> Choice1Of2 v | Choice2Of2 e -> f e : Choice<'v,'e>
64
+
/// Like Choice.bindChoice2Of2 but with flipped arguments.
65
+
let inlinecatchx f = x |>function Choice1Of2 v -> Choice1Of2 v | Choice2Of2 e -> f e : Choice<'v,'e>
66
66
67
67
/// <summary>If the input value is a Choice1Of2 leaves it unchanged, otherwise maps the value on the Choice2Of2 and flattens the resulting nested Choice.</summary>
68
68
/// <param name="binder">A function that takes the value of type T and transforms it into a Choice containing (potentially) a value of type U.</param>
Copy file name to clipboardExpand all lines: src/FSharpPlus/Extensions/IReadOnlyDictionary.fs
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -60,9 +60,6 @@ module IReadOnlyDictionary =
60
60
dct.Add (k, mapper v)
61
61
dct :> IReadOnlyDictionary<'Key, 'U>
62
62
63
-
[<System.Obsolete("Name is a bit ambiguous, use mapValues if the intention is to map only over the values or mapi to map over both keys and values.")>]
64
-
letmap f (x:IReadOnlyDictionary<'Key,'T>)= mapValues f x // F#+ 2: if following F# core naming, it should point to mapi instead.
65
-
66
63
/// <summary>Creates a read-only dictionary value from a pair of read-only dictionaries,
67
64
/// using a function to combine them.</summary>
68
65
/// <remarks>Keys that are not present on both read-only dictionaries are dropped.</remarks>
Copy file name to clipboardExpand all lines: src/FSharpPlus/Extensions/List.fs
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -449,9 +449,6 @@ module List =
449
449
lst.[0..i-1]@ lst.[i+1..]
450
450
else lst
451
451
452
-
[<Obsolete("This function was included in FSharp.Core but throwing. Use deletaAt instead or if you want to throw exceptions use the full path to removeAt in FSharp.Core until this function is removed from this library")>]
453
-
letremoveAt i lst = deleteAt i lst
454
-
455
452
/// <summary>Updates the value of an item in a list</summary>
456
453
/// <param name="i">The index of the item to update</param>
457
454
/// <param name="x">The new value of the item</param>
0 commit comments