Skip to content

Commit

Permalink
Merge pull request #201 from xuwei-k/patch-1
Browse files Browse the repository at this point in the history
fix apply.md and functor.md
  • Loading branch information
non committed Feb 15, 2015
2 parents 87a1fd9 + 38a3d90 commit 480d2f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/src/main/tut/apply.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Apply[Option].apply2(Some(1), Some(2))(None)
## composition

Like Functors, Apply instances also compose:

```tut
val listOpt = Apply[List] compose Apply[Option]
val plusOne = (x:Int) => x + 1
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/tut/functor.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ implicit def function1Functor[In]: Functor[({type λ[α] = Function1[In,α]})#λ

Option is a functor which always returns a Some with the function
applied when the Option value is a Some.
g

```tut
val len: String => Int = _.length
Functor[Option].map(Some("adsf"))(len)
Expand Down

0 comments on commit 480d2f1

Please sign in to comment.