Drop is a keyword in the rys programming language
which drops/pops/removes n amount of elements
from the main stack
This is useful when a function or a keyword you called returned a value you don't want or need to use
For example writefd returns amount of bytes
it will write (in compile time) and how much it successfully wrote
in run time (refer to write(2))
and the string type in type checking
drop takes one argument: The amount of elements to drop from the stack (for example 3)
Example of drop:
3 dropYou can see an example of how drop can be used in rys hello world example