@@ -10,18 +10,18 @@ The Functor abstraction is used for types that can be mapped over.
1010___
1111Minimal complete definition
1212---------------------------
13- * `` map f x `` / `` (|>>) x f `` / `` (<<|) f x `` / `` (<!>) f x ``
13+ * `` map f x `` & nbsp ; / & nbsp ; `` (|>>) x f `` & nbsp ; / & nbsp ; `` (<<|) f x `` & nbsp ; / & nbsp ; `` (<!>) f x ``
1414*)
1515(**
16- static member Map (x:'Functor<'T>, f:'T-> 'U) :'Functor<'U>
16+ static member Map (x: 'Functor<'T>, f: 'T -> 'U) : 'Functor<'U>
1717*)
1818(**
1919Other operations
2020----------------
2121 * `` unzip x ``
2222*)
2323(**
24- static member Unzip (x:Functor<'T * 'U>) :'Functor<'T> * 'Functor<'U>
24+ static member Unzip (x: ' Functor<'T * 'U>) : 'Functor<'T> * 'Functor<'U>
2525*)
2626(**
2727Rules
@@ -54,49 +54,49 @@ From F#
5454 - `` Async<'T> ``
5555 - `` Result<'T,'U> ``
5656 - `` Choice<'T,'U> ``
57- - `` KeyValuePair<'Key,'T> ``
57+ - `` KeyValuePair<'Key, 'T> ``
5858 - `` Map<'Key,'T> ``
5959 - `` 'Monoid * 'T ``
6060 - `` 'struct ('Monoid * 'T) ``
6161 - `` Task<'T> ``
6262 - `` ValueTask<'T> ``
6363 - `` 'R->'T ``
6464 - `` Expr<'T> ``
65- - `` Dictionary<'Key,'T> ``
66- - `` IDictionary<'Key,'T> ``
67- - `` IReadOnlyDictionary<'Key,'T> ``
65+ - `` Dictionary<'Key, 'T> ``
66+ - `` IDictionary<'Key,' T> ``
67+ - `` IReadOnlyDictionary<'Key, 'T> ``
6868 - `` ResizeArray<'T> ``
6969
7070From F#+
7171
72- - [ `` Cont<'R,'T> `` ] ( type-cont.html )
73- - [ `` ContT<'R,'T> `` ] ( type-contt.html )
74- - [ `` Reader<'R,'T> `` ] ( type-reader.html )
75- - [ `` ReaderT<'R,'Monad<'T>> `` ] ( type-readert.html )
76- - [ `` Writer<'Monoid,'T> `` ] ( type-writer.html )
72+ - [ `` Cont<'R, 'T> `` ] ( type-cont.html )
73+ - [ `` ContT<'R, 'T> `` ] ( type-contt.html )
74+ - [ `` Reader<'R, 'T> `` ] ( type-reader.html )
75+ - [ `` ReaderT<'R, 'Monad<'T>> `` ] ( type-readert.html )
76+ - [ `` Writer<'Monoid, 'T> `` ] ( type-writer.html )
7777 - [ `` WriterT<'Monad<'T * 'Monoid>> `` ] ( type-writert.html )
78- - [ `` State<'S,'T * 'S> `` ] ( type-state.html )
79- - [ `` StateT<'S,'Monad<'T * 'S>> `` ] ( type-statet.html )
78+ - [ `` State<'S, 'T * 'S> `` ] ( type-state.html )
79+ - [ `` StateT<'S, 'Monad<'T * 'S>> `` ] ( type-statet.html )
8080 - [ `` OptionT<'Monad<option<'T>> `` ] ( type-optiont.html )
8181 - [ `` ValueOptionT<'Monad<voption<'T>> `` ] ( type-valueoptiont.html )
8282 - [ `` SeqT<'Monad<seq<'T>> `` ] ( type-seqt.html )
8383 - [ `` ListT<'Monad<list<'T>> `` ] ( type-listt.html )
84- - [ `` ResultT<'Monad<Result<'T,'TError>> `` ] ( type-resultt.html )
85- - [ `` ChoiceT<'Monad<Choice<'T,'TError>> `` ] ( type-choicet.html )
86- - [ `` Free<'Functor<'T>,'T> `` ] ( type-free.html )
84+ - [ `` ResultT<'Monad<Result<'T, 'TError>> `` ] ( type-resultt.html )
85+ - [ `` ChoiceT<'Monad<Choice<'T, 'TError>> `` ] ( type-choicet.html )
86+ - [ `` Free<'Functor<'T>, 'T> `` ] ( type-free.html )
8787 - [ `` NonEmptyList<'T> `` ] ( type-nonempty.html )
8888 - [ `` NonEmptySet<'T> `` ] ( type-nonempty-set.html )
8989 - [ `` NonEmptyMap<'Key, 'T> `` ] ( type-nonempty-map.html )
90- - [ `` Validation<'Error,'T> `` ] ( type-validation.html )
90+ - [ `` Validation<'Error, 'T> `` ] ( type-validation.html )
9191 - [ `` ZipList<'T> `` ] ( type-ziplist.html )
9292 - [ `` ParallelArray<'T> `` ] ( type-parallelarray.html )
93- - [ `` Const<'C,'T> `` ] ( type-const.html )
93+ - [ `` Const<'C, 'T> `` ] ( type-const.html )
9494 - [ `` Compose<'AlternativeF<'AlternativeG<'T>>> `` ] ( type-compose.html )
9595 - [ `` DList<'T> `` ] ( type-dlist.html )
9696 - [ `` Kleisli<'T, 'Monad<'U>> `` ] ( type-kleisli.html )
97- - [ `` Coproduct<'FunctorL<'T>,'FunctorR<'T>> `` ] ( type-coproduct.html )
98- - [ `` Vector<'T,'Dimension> `` ] ( type-vector.html )
99- - [ `` Matrix<'T,'Rows,'Columns> `` ] ( type-matrix.html )
97+ - [ `` Coproduct<'FunctorL<'T>, 'FunctorR<'T>> `` ] ( type-coproduct.html )
98+ - [ `` Vector<'T, 'Dimension> `` ] ( type-vector.html )
99+ - [ `` Matrix<'T, 'Rows, 'Columns> `` ] ( type-matrix.html )
100100
101101Restricted:
102102 - `` string ``
@@ -153,8 +153,8 @@ type Tree<'a> =
153153 | Leaf of 'a
154154 static member map f ( t : Tree < 'a > ) =
155155 match t with
156- | Leaf x -> Leaf ( f x)
157- | Tree( x, t1, t2) -> Tree( f x, Tree.map f t1, Tree.map f t2)
156+ | Leaf x -> Leaf ( f x)
157+ | Tree ( x, t1, t2) -> Tree( f x, Tree.map f t1, Tree.map f t2)
158158
159159// add instance for Functor class
160160 static member Map ( x : Tree < _ >, f ) = Tree.map f x
@@ -179,4 +179,4 @@ type MyList<'s> = MyList of 's seq with
179179 static member Return ( x : 'a ) = MyList x
180180 static member (>>= ) ( MyList x: MyList< 'T>, f) = MyList ( Seq.collect ( f >> ( fun ( MyList x ) -> x)) x)
181181
182- let mappedMyList = map string ( MyList [ 1 ; 2 ; 3 ])
182+ let mappedMyList = map string ( MyList [ 1 ; 2 ; 3 ])
0 commit comments