Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

turn down volume on readme

  • Loading branch information...
commit 415e293d03e1b72cd7c29fcdb5d7c03ecd8ddc91 1 parent 6e299b6
@dominictarr authored
Showing with 46 additions and 0 deletions.
  1. +46 −0 readme.markdown
View
46 readme.markdown
@@ -0,0 +1,46 @@
+
+CURRY
+=====
+
+(don't be alarmed I'm doing some commits to this project to test my integration server)
+
+#curry function without anything *too clever*
+_(... because hunger is the finest spice)_
+
+can curry left an right and pass in a context object in one easy call.
+
+ var fn = curry([left],function,[right],self)
+
+wrap your curry args in Arrays
+
+calling `fn(x)` will stick `x` in between left and right curry ingredients.
+
+*left* and *right* are _*Arrays*_, and are _optional_.
+
+i.e.
+
+ var fn = curry(funx,[1,2,3])
+
+is the same as
+
+ var fn = curry([],funx,[1,2,3])
+
+this makes `fn(X)` call `funx(X,1,2,3)`
+
+##calling styles:
+
+in all, there are 8 ways to call the function.
+
+ curry([left],fn,[right])
+ curry(fn,[right])
+ curry([left],fn)
+ curry(fn)
+
+ curry([left],fn,[right],self)
+ curry(fn,[right],self)
+ curry([left],fn,self)
+ curry(fn,self)
+
+#full test coverage for documented usuage!
+
+ > expresso test/curry.expresso.js
Please sign in to comment.
Something went wrong with that request. Please try again.