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

5:25 AM
aoc day 9 is direct application of +/ and -/
contrast to yesterdays' the problem provide too much useless details
 
 
9 hours later…
2:07 PM
(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…
5:56 PM
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 (151 days later) »