Skip to content

Commit ce2cf7d

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FSharpPlus/Control/Functor.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ type Map =
105105
static member Map ((x: string , f ), _mthd: Map) = String.map f x
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
108-
static member Map ((_: Set2<'T> , _: 'T->'U), _mthd: Map) = Set2<'U>()
108+
static member Map ((x: HashSet<_ > , f ), _mthd: Map) = HashSet.map f x
109109

110110

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

0 commit comments

Comments
 (0)