Last active
December 17, 2015 00:29
-
-
Save sevvie/5521365 to your computer and use it in GitHub Desktop.
These five lines of code make me way too happy.
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
#!env lsc | |
global <<< require \prelude-ls | |
cmd-line-args = drop 2, process.argv | |
console.log cmd-line-args |
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
sevvie@Prudence - ~/Workspaces/Sandbox % ./exec.ls | |
[] | |
sevvie@Prudence - ~/Workspaces/Sandbox % ./exec.ls chocolate bar | |
[ 'chocolate', 'bar' ] | |
sevvie@Prudence - ~/Workspaces/Sandbox % lsc -c exec.ls | |
sevvie@Prudence - ~/Workspaces/Sandbox % node exec.js chocolate bar | |
[ 'chocolate', 'bar' ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment