A+B: Difference between revisions
Content added Content deleted
(Added Terraform Implementation) |
|||
Line 3,105: | Line 3,105: | ||
<lang J> 2+3 |
<lang J> 2+3 |
||
5</lang> |
5</lang> |
||
Next we describe then implement a command line program to add some numbers. |
|||
⚫ | |||
⚫ | |||
<lang J>+/". (1!:1(3))-.LF</lang> |
<lang J>+/". (1!:1(3))-.LF</lang> |
||
Here's a little script, called "a+b.ijs": |
2) Here's a little script, called "a+b.ijs": |
||
<lang J>#!/Applications/j602/bin/jconsole |
<lang J>#!/Applications/j602/bin/jconsole |
||
echo +/". (1!:1(3))-.LF |
echo +/". (1!:1(3))-.LF |
||
exit ''</lang> |
exit ''</lang> |
||
Here is |
3) Here is an execution of the script: |
||
<lang bash>echo 2 3 | ./a+b.ijs |
<lang bash>echo 2 3 | ./a+b.ijs |
||
5</lang> |
5</lang> |