« first day (167 days earlier)      last day (1608 days later) » 

05:37
why isn't it showing the top element of the stack?
why isn't the stack getting reversed?
Because there ain't anything on the stack silly!
i thought implicit input existed
@Razetime it does but even then it'd only take the first input
^ on an empty stack don't do input
05:40
okok
Yee
so i need to take an array differently
Yep
05:41
? takes a single line
Yep
@Razetime ¿
Thats what you need
aha
perfect
¿⑶ for straight up arrays
Because reverses the tos
I just want a bunch of elements to empty on the stack
just take 1,2,3,4,5,6
and pour them into the stack
no array
÷
That "item splits" the top
Pushes each individual item
Works on strings and integers too
05:44
ok
that works
Fun fact about Binary Reduce a List By Addition with a right bias: I posted it at 3am in the morning (a time I'm not usually up) from my phone lol
looks like 100 exercises with keg material
It also confirmed my suspicion that Arnauld is a code golfing Ai and isn't a real person
@Lyxal it's too obvious
@Razetime he answers questions at all hours
And manages to answer most questions
05:49
How in the world does he just figure out crazy algorithms
Hence, he's a machine learning algorithm just for golfing
immediately after the question is posted
Yep
That's right.
ok so I made a while loop: Try it online!
and im not sure whats working and whats not
But it'll never run
05:52
ok what is wrong here
You've written: while len(stack) == 2:...
ah thats whats wrong
it should be >
my brain was turned off
Oh I see
05:54
now I just need to figure out the sum and reverse
I have a MAWP prototype
but I don't know keg well enough lmao
there's some temporary stack things going on which I'm not sure about
so the while loop is on the condition length > 2.
but add and reversing the stack reduces it to one value for some reason @Lyxal
@Razetime duh, because your loop only leaves 1 item
yeah how do i get things back in main stack
There's only 1 stack
then what is a temporary stack
it says addition affects a temporary stack
Ah. You're reading the structures part
06:07
÷{!3>|+^}
this is my current code
That's only when determining the while loop condition/for loop times
ok
so the left part is not added to the main stack
correct
No
!3> is added to the stack
so _ it out
then perform the thing
ima try this later
Okay I gtg anyway
 
15 hours later…
21:30
A recursive factorial for y'all:
@factorial:1|
	:0=[
		_1
	|
		: 1- @factorial; *
	]
;

8 @factorial; .
@f:1|:0=[_1|:1-@f;*];
8@f;.

« first day (167 days earlier)      last day (1608 days later) »