« first day (1028 days earlier)
← previous day
next day →
last day (1619 days later) »
Jo King
1:22 AM
I have a solution for
this question
, but I'm unsure how to convert it to a train
Try it online!
Bubbler
@JoKing
14 bytes train
...which is one byte shorter than
naive dfn
H.PWiz
Just beat me to it :) (Sometimes people just read input with
⎕
like this:
tio.run/##SyzI0U2pTMzJT///qG@qp/@jtgkGXI862tP@H56ub6h9eLuhto62/…
)
Jo King
@Bubbler Ah thanks, I was just looking at the
∘
operator. Pity I can't use monadic
÷
then
H.PWiz
You can with
+∘÷
Bubbler
^, which is still the same length
Jo King
1:38 AM
i need to get used to actually using APL practically. I vaguely know most of the operators, but I don't quite know how to organise things
Bubbler
A good place to start is Phase 1 problems of
APL student competition
.
2019 site
still has online checker set up, I think
2 hours later…
Bubbler
3:56 AM
@Adám Do you have a plan to extend the
language bar
for Dyalog APL Extended?
4 hours later…
Adám
7:50 AM
@Bubbler Ah, that's an interesting idea.
16 hours later…
Bubbler
11:34 PM
Now I'm tackling
this challenge
, and my solution is
61 bytes
now in Dyalog APL Extended
just 3 bytes away from beating CJam, but I can't find any more places to golf right now
Only if inverse accepted trains, or APL was lazy like Haskell...
H.PWiz
Inverse does accept trains (?)
Bubbler
wat.
H.PWiz
⎕←(*×⍟)⍣¯1⊢2
Dyalog APL
@H.PWiz 1.537201703
H.PWiz
Unless it's something with extended
Bubbler
11:55 PM
So it happens only in Extended, when a train is assigned to a name before applying inverse
@Adám ^
Adám
@Bubbler @H.PWiz Some inverses don't work in Extended because
⍣
can't invert the dfn cover functions I inject. You can "un-extend" a primitive by prefixing it with a backtick.
« first day (1028 days earlier)
← previous day
next day →
last day (1619 days later) »
all rooms
Transcript for
Nov
18
Nov '19
19
Nov
20
The APL Orchard
apl.chat
― Learn, teach, ask, code, golf, & discuss usage. See
...
2
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