Skip to content

Commit db9723b

Browse files
committed
+ HashSet as (restricted) Functor
1 parent 5519280 commit db9723b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/FSharpPlus/Control/Functor.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ type Map =
106106
static member Map ((x: StringBuilder , f ), _mthd: Map) = StringBuilder (String.map f (string x))
107107
static member Map ((x: Set<_> , f ), _mthd: Map) = Set.map f x
108108
static member Map ((_: Set2<'T> , _: 'T->'U), _mthd: Map) = Set2<'U>()
109+
static member Map ((x: HashSet<_ > , f ), _mthd: Map) = HashSet.map f x
109110

110111

111112
static member inline Invoke (mapping: 'T->'U) (source: '``Functor<'T>``) : '``Functor<'U>`` =

0 commit comments

Comments
 (0)