h3rald / min

A small but practical concatenative programming language and shell
https://min-lang.org
MIT License
309 stars 23 forks source link

Getting the entire stack as a list #20

Closed ajusa closed 6 years ago

ajusa commented 6 years ago

How would I go about doing that? I tried concating in a loop, but I can't concat things that are ints.

Sorry if this is in the docs, I may not have seen that bit.

h3rald commented 6 years ago

Hi!

Sure, no worries: you can use the get-stack symbol to get the entire contents of the stack as a quotation.

There are also a few other symbols to manipulate the stack as well, described here:

https://min-lang.org/reference-stack/

I should probably add a search functionality on the site, really... I understand it may be difficult to find things! Hope it helps!

ajusa commented 6 years ago

Thanks!