Skip to content

Commit

Permalink
Simplify the overly wordy documentation for S.compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Avaq committed Feb 4, 2017
1 parent a82f202 commit 67f215d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -769,12 +769,8 @@

//# compose :: (b -> c) -> (a -> b) -> a -> c
//.
//. Takes two functions assumed to be unary and a value of any type,
//. and returns the result of applying the first function to the result
//. of applying the second function to the given value.
//.
//. In general terms, `compose` performs right-to-left composition of two
//. unary functions.
//. Composes two unary functions, from right to left. Equivalent to Haskell's
//. `(.)` function.
//.
//. This is the B combinator from combinatory logic.
//.
Expand Down

0 comments on commit 67f215d

Please sign in to comment.