« first day (953 days earlier)      last day (442 days later) » 

6:53 AM
Why does Δ clear the stack except for the last item every iteration? :S tio.run/##MzBNTDJM/f//3BSXksPrD08w0dI@uiBPt9b//39j0/@6KQA It goes from stack [25, '35', 5] to [10] after the - and next iteration.. I would expect it to be [25, 10], like here: tio.run/##MzBNTDJM/f8/Qff//2gjUx0FdWNTdR0FI9PY/7opAA
@Adnan @Mr.Xcoder ^ Is this intended behavior or a bug?
 
Hmm...
@KevinCruijssen This behaviour is intended. Δ works by looping until the top of the stack no longer changes, so the rest of the stack is ignored. If you really need to use the whole stack, perhaps you could use ) and ` to make it persist after each iteration.
 
7:25 AM
@Mr.Xcoder I tried using ` and ), but since the values are already on the stack, it clears those as well. As work-around I now use an infinite loop that breaks on 0.
0
A: Roman Army Shields

Kevin Cruijssen05AB1E, 17 bytes [Ð_#tïÐns4*+Šn-}O Try it online or verify all test cases. Work-around because ΔDtïÐns4*+Šn-}O (15 bytes) doesn't seem to work.. Try it online in debug-mode to see what I mean. I would expect it to go from [45,'35',25] to [45,10] after the - and next iteration of Δ, but appare...

 
8:24 AM
@KevinCruijssen If you really want to use the fixed-point loop, you can do this for 17:
ΔЈtïnα}¯¥ÄDt··+O
Though it can be golfed, since I am on mobile and I haven't done any golfing yet
My approach also uses the global array.
 
8:58 AM
Alternaitively: ΔЈtïnα}¯¥ÄtD4+*O
 
 
10 hours later…
7:12 PM
@Kaldo Added on the todo list
@KevinCruijssen As Mr. Xcoder said, it is indeed intend behaviour
Δ is a non-bound subprogram command which uses an entirely new stack
 

« first day (953 days earlier)      last day (442 days later) »