A Basic Pineapple Program
Every Pineapple program is executed via the .main
method.
For example,
def .main
'hello world'.show
'bye'.show
Note that the indentation is necessary.
Also, by default, Prelude library will be loaded.
Every Pineapple program is executed via the .main
method.
For example,
def .main
'hello world'.show
'bye'.show
Note that the indentation is necessary.
Also, by default, Prelude library will be loaded.