« first day (2509 days earlier)      last day (366 days later) » 

05:25
aoc day 9 is direct application of +/ and -/
contrast to yesterdays' the problem provide too much useless details
 
9 hours later…
14:07
(AOC day 9 spoilers!) I have (≢(+/⊢×⊣!⍨⍳⍤≢⍤⊢)((⊃¨(2∘(-⍨/))_Iterate_(0∧.=⊣)))) for part 1 and very similarly (¯1(+/⊢×⊣!⍨⍳⍤≢⍤⊢)((⊃¨(2∘(-⍨/))_Iterate_(0∧.=⊣)))) for part 2 (iterate is from aplcart)
like it more than doing +/ because it needs no change to work for the second part
(probably easier to read as ¯1(+/⊢×!⍨∘(⍳≢))(⊃¨2∘(-⍨/)_Iterate_(0∧.=⊣)))
 
4 hours later…
17:56
0
Q: Dyalog APL: How to execute a function regardless of errors?

конструкторI have a function with the code (borrowed here https://github.com/mkromberg/websocket-demo) assert 0=⊃res←iConga.Clt''WSHOST WSPORT'http' 100000('X509'(⎕NEW iConga.X509Cert))('Options'iConga.Options.WSAutoUpgrade) wsclt←2⊃res ws_state.cid←wsclt assert 0=⊃res←iConga.SetProp wsclt'WSUpgrade'('/...


« first day (2509 days earlier)      last day (366 days later) »