« first day (1986 days earlier)
← previous day
next day →
last day (673 days later) »
Adám
12:27 PM
APL Quest 2015-2: Longest Streak
►
PyGamer0
1:00 PM
@Adám i forgor to post my k answer :P ngn/k, 13 bytes:
|/{y*x+y}\>':
doesnt work for the scalar case though
Adám
No worries, since I don't include K answers in my videos ;-)
PyGamer0
:P
Adám
How do you convert a scalar/vector to a vector in K?
,/,
?
PyGamer0
doesnt work
i just need to
,
enlist the scalar
but i dont know how to enlist if the argument is a scalar
Adám
Sure, but that'd put a given list into another 1-element list, no?
xpqz
1:04 PM
Next week's Quest is interesting. One of the harder ones, unless I missed some trick.
Adám
How about
,//,
?
PyGamer0
nope
@Adám yeah
> enlist if the argument is a scalar
xpqz
@PyGamer0 I had
|/{y*x+y}\>':(!0),
Adám
,/,
seems to work for me.
,/,42 ,42 ,/,1 2 3 4 1 2 3 4
PyGamer0
@xpqz oh nice
Adám
1:07 PM
@xpqz Wouldn't
"",
work too?
xpqz
Maybe. My k is de-k-ing.
Adám
Badum tsh.
xpqz
I'll get my coat.
@PyGamer0 you know that all the quest problems are used as unit tests for ngn/k?
PyGamer0
@xpqz the
dy/
folder?
yeah i have seen that
xpqz
Originally by me, but golfed to within an inch of their lives by the usual suspects.
PyGamer0
1:12 PM
but i am trying to make them on my own so i can learn :P
xpqz
Same as I did.
« first day (1986 days earlier)
← previous day
next day →
last day (673 days later) »
all rooms
Transcript for
Jul
3
Jul '22
4
Jul
5
The APL Orchard
apl.chat
― Learn, teach, ask, code, golf, & discuss usage. See
...
4
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