Using APLEdit to create a function in gnu-apl -
i'm trying learn apl excellent apl wiki , gnu-apl on mac, i'm having trouble creating functions.
specifically, i'm trying create "try1" function wiki.
it's not working in gnu-apl, downloaded , installed apleditor per instructions, , can invoke editor in workspace with:
e∆edit '' i'm little confused: how can name , save function use in workspace?
just started apl, use built-in del (∇) editor, despite wiki's claim never need learn it. del editor spiritual equivalent of old edlin editor came pc-dos, primitive , painful use compared slick full screen editor. (it's had in old days). type in function see it.
∇try1
[1] 'type numbers: '
[2] num ← ⎕
[3] 'total is: '(+/num)
[4] ∇
the bracketed line numbers ([1], [2], [3], , [4]) should supplied system, shell prompt. final del (∇) after [4] should out of edit mode , immediate execution mode.
when done, type )fns , should see try1. type try1 run it.
afterwards, can try of excellent "aftermarket" editors.
Comments
Post a Comment