« first day (226 days earlier)      last day (2725 days later) » 

02:39
@Adám how do I define a function with multiple statements in it? I've gotten the {⍵} syntax, but I'd like to try something more complex.
03:03
Also, is there a way to open Dyalog like an IDE, not a REPL, so I can write out full scripts at once?
Actually, I might as well ask all my questions and ask how to do while loops and if/else statements.
 
4 hours later…
06:44
@Pavel In the session (the REPL) you can separate statements with (APL+backtick). Otherwise you can open the real editor with )ed foo and then type ←{ and press Enter. Line breaks separate statements too.
@Pavel It is all integrated. Enter )ed foo for a function, )ed →foo for a character vector, )ed ○foo for a class, etc. See here for all available squiggles. Alternatively, you can create the object in the REPL to set its type, and then edit it with just )ed foo (or double-click its name). E.g. create a character vector with foo←'' or a vector of character vectors with foo←'' ''
@Pavel The best way to save an object to disk is using ]save myobject path\folder` This creates a human readable text file (.dyalog extension) which you can either edit with your favourite editor, double-click to use Dyalog's stand-alone editor, or ]load path\folder\myobject` from the REPL to )ed myobject further or just to use it.
@Pavel Actual control structures only work in so called "tradfns" (traditional functions), e.g.:
∇foo arg
:while arg>10
⎕←arg
arg-←1
:endwhile
∇
YOu can either enter the above in the REPL (will switch to and from editor mode automatically), or enter )ed foo and then type.
If statements work the same way, but you can even use them in dfns:
foo←{condition:result if true ⋄ next statement if false ⋄ another statement}
@Pavel Hint: help.dyalog.com and also, you can press F1 with the cursor on any keyword or squiggle.
 
5 hours later…
12:07
We are on the way ... let #Dyalog17 commence ... see you soon 😄 https://t.co/ac64kQKThn
 
3 hours later…
15:12
@Adám Thank you so much!
 
3 hours later…
18:27
Nearly there ... the final leg! https://t.co/YWEdnTSBTt

« first day (226 days earlier)      last day (2725 days later) »