diff options
| author | Kristin Linn <klinn@upenn.edu> | 2015-10-20 16:26:35 -0400 | 
|---|---|---|
| committer | Kristin Linn <klinn@upenn.edu> | 2015-10-20 16:26:35 -0400 | 
| commit | 396e6f5d9708f827512c4699240f72477366ff76 (patch) | |
| tree | d63b41a4d91ea80c594574c48fc6416d6fd9a538 /livescript.html.markdown | |
| parent | 11aab085d656b79482e92a05acbbac81125bfb78 (diff) | |
| parent | 5fb5dd7c7fd7670faca6b8cfff9ef1ffdbd65c0d (diff) | |
Merge branch 'master' of https://github.com/adambard/learnxinyminutes-docs
Diffstat (limited to 'livescript.html.markdown')
| -rw-r--r-- | livescript.html.markdown | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/livescript.html.markdown b/livescript.html.markdown index e64f7719..9235f5ce 100644 --- a/livescript.html.markdown +++ b/livescript.html.markdown @@ -166,7 +166,7 @@ not false       # => true  ########################################################################  ## 3. Functions -########################################################################         +########################################################################  # Since LiveScript is functional, you'd expect functions to get a nice  # treatment. In LiveScript it's even more apparent that functions are @@ -229,7 +229,7 @@ double-minus-one = (- 1) . (* 2)  # Other than the usual `f . g` mathematical formulae, you get the `>>`  # and `<<` operators, that describe how the flow of values through the -# functions.  +# functions.  double-minus-one = (* 2) >> (- 1)  double-minus-one = (- 1) << (* 2) @@ -344,7 +344,7 @@ kitten.hug!     # => "*Mei (a cat) is hugged*"  ## Further reading  There's just so much more to LiveScript, but this should be enough to -get you started writing little functional things in it. The  +get you started writing little functional things in it. The  [official website](http://livescript.net/) has a lot of information on the  language, and a nice online compiler for you to try stuff out! | 
