Vyxal / Vyxal

A code-golfing language experience that has aspects of traditional programming languages - terse, elegant, readable.

Home Page:https://vyxal.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[v3] Reverse order when listifying stack

ysthakur opened this issue · comments

Currently, when multiple elements are popped from the stack, the elements from the top are at the end of the returned list, while the elements from the bottom are at the start of the returned list. This makes sense with data structures that usually add elements to the end, but since we're using Lists, we might want to output in the opposite order instead. It'll slightly simplify Context#pop(Int), Context#peek(Int), and Inputs#peek(Int).