« first day (2320 days earlier)
← previous day
next day →
last day (339 days later) »
RubenVerg
7:32 AM
@Adám yet another problem that would benefit from a pair primitive
2 hours later…
Master Quiz
9:41 AM
Is there a better way to check that there aren't consecutive zeros in a matrix (both rows and columns) than this
f←(⍉∨⍥(∨/∘,0 0∘⍷)⊢)∘×
?
6 hours later…
Silas
3:58 PM
Feel like there should be some nice way with ⍸ and then comparing the co-ordinates but not managing to get anywhere
4 hours later…
1234
7:36 PM
rm←{((⍵-1)↑⍺),(⍵↓⍺)}
(b rm)¨ 1 2 3
why I can not get 2 3 1 3 1 3 ?
what I want: 1 2 3 => remove 1, => 23
1 2 3 => remove 2, => 1 3
1 2 3 => remove 3, => 1 2
so I should get 2 3 1 3 1 2 ?
b ← 1 2 3
remove 1st, 2nd, 3rd from a given vector 1 2 3
b rm¨ 1 2 3
2 3 0
I expect I get 2 3 1 3 1 2
1 hour later…
Silas
9:07 PM
@1234 you'll need to bind b to rm so b∘rm¨1 2 3 then.
otherwise b rm¨1 2 3 pairs each element together so 1 rm 1, 2 rm 2, 3 rm 3
@1234 this also isn't quite the output you're getting - try doing ]display b rm¨1 2 3 to see the 3 vectors produced
{b rm ⍵}¨1 2 3 would also work
Silas
9:44 PM
@Adám is ]box disabled on tryapl because of having to send the state?
Adám
10:42 PM
@Silas
]box
isn't disabled as such. There are no commands at all. All the apparent commands are faked.
« first day (2320 days earlier)
← previous day
next day →
last day (339 days later) »
all rooms
Transcript for
Jun
2
Jun '23
3
Jun
4
The APL Orchard
apl.chat
― Learn, teach, ask, code, golf, & discuss usage. See
...
5
apl
array-manipulation
j
tips
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile