Skip to content

Commit

Permalink
pass in op as argument for bound access
Browse files Browse the repository at this point in the history
  • Loading branch information
vendethiel committed Dec 6, 2013
1 parent 7806bb9 commit 6457566
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ast.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/ast.ls
Expand Up @@ -1065,7 +1065,7 @@ class exports.Binary extends Node
| \<<< \<<<< => return Import first, second, op is \<<<<
| \<| => return Block first .pipe second, op
| \|> => return Block second .pipe first, \<|
| \. \.~ => return Chain first .add Index second
| \. \.~ => return Chain first .add Index second, op
import {op, first, second}

children: <[ first second ]>
Expand Down
2 changes: 2 additions & 0 deletions test/function.ls
Expand Up @@ -645,6 +645,8 @@ eq 2 ((.) obj) \a

ary = [1 2]
eq '1,2,3' "#{(.~concat) ary <| 3}"
concat = (.~) ary, 'concat'
eq '1,2,3' "#{concat 3}"

### partialization
three-add = (x, y, z) -> x + y + z
Expand Down

0 comments on commit 6457566

Please sign in to comment.