The APL Orchard

apl.chat ― Learn, teach, ask, code, golf, & discuss usage. See ...
Mar 1, 2024 21:07
@NeRoboto Could be your ⎕io-setting. 2,[0.5]7 gives a RANK ERROR if you set ⎕io←0.
Nov 17, 2023 13:44
Thanks all, that was very interesting!
Nov 17, 2023 13:09
@Adám I never thought about that, good to know! Thank you!
Nov 17, 2023 13:02
Which seems to be the same as @rabbitgrowth
Nov 17, 2023 13:01
I had {⌈/0,{(⍸2>/⍵)-⍸2</⍵}0,⍵,0}.
Sep 29, 2023 16:05
↑(0 1 0 1 0)(0 1 0 1 0)(1 0 0 0 1)(0 1 0 1 0)(0 1 0 1 0)
Sep 29, 2023 16:05
@Adám I guess adding the following testcase and its transpose should fix the issue with the problem checker, no?
Sep 29, 2023 15:28
Somehow got it wrong trying to remember what I did. Still confused why my proposed solution passed the problem check.
`{1=≢∪+⌿⍵,⍥{⍵,1 1⍉⍵}⌽⍉⍵}` should be correct?
Sep 29, 2023 15:18
I had {1=≢∪+⌿⍵,⍥{⍵,1 1⍉⍵}⌽⍵}
Sep 8, 2023 15:27
Thanks @Adám!
Sep 8, 2023 15:13
@Adám That is funny indeed! For clarity I prefered (¯0.5+○÷4)×*∘2 but decided to do some more code-golfing…
Sep 8, 2023 15:01
(¯.5+○÷4)××⍨
Sep 1, 2023 15:06
@rabbitgrowth You could write ⊢⍤/⍨ instead. Although that is not so nice either.
Aug 25, 2023 15:41
@Adám Thank you!
Aug 25, 2023 15:31
@Adám Is there a way to extend this solution to rank > 1?
Aug 25, 2023 15:29
@Adám ∊⍨×⍳
Aug 25, 2023 15:10
@Adám ⍳|⍨1+≢⍤⊣
Apr 27, 2023 15:41
@phantomics One thing to note is that you have to set it within the correct build stage. For example adding the line ENV MAXWS=2G directly above ENTRYPOINT ["/entrypoint"] should do the trick (anywhere below line 16 in the Dockerfile should be fine). If you want to use the dyalog/dyalog public image, you can set it within the run command. So docker run -e MAXWS=2G dyalog/dyalog.
Apr 27, 2023 15:23
@Adám thx