Created
October 20, 2017 16:10
-
-
Save menduz/785b6f0692baa69fa8fe8900040c06a8 to your computer and use it in GitHub Desktop.
POST-dollar-sign
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1,2] map (item, index) -> (item * 10 + index) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var list = [1,2] | |
--- | |
map(list, (item, index) -> (item * 10 + index)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map([1,2], (item, index) -> (item * 10 + index)) | |
// Is exactly the same as (infix notation) | |
[1,2] map (item, index) -> (item * 10 + index) | |
// Is exactly the same as (infix + injection) | |
[1,2] map ($ * 10 + $$) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment