Skip to content

Commit 8b85b34

Browse files
aestevebishabosha
andauthored
using F as a substitution for every type that ca be mapped over
Co-Authored-By: Jamie Thompson <[email protected]>
1 parent c15cd63 commit 8b85b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/contextual/typeclasses-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ assert(3 == List(1, 2).combineAll)
8080
### Functors:
8181

8282
A `Functor` for a type provides the ability for its values to be "mapped over", i.e. apply a function that transforms inside a value while remembering its shape. For example, to modify every element of a collection without dropping or adding elements.
83-
Let's name our "type containing zero or more elements" `F`. It's a type constructor: the type of its values becomes concrete when provided a type argument.
83+
We can represent all types that can be "mapped over" with `F`. It's a type constructor: the type of its values becomes concrete when provided a type argument.
8484
Therefore we write it `F[_]`, hinting that it is a type with internal details we can inspect.
8585
The definition of a generic `Functor` would thus be written as:
8686

0 commit comments

Comments
 (0)