Skip to content

A Basic Pineapple Program

Every Pineapple program is executed via the ().main method.
For example,

1
2
3
def ().main
    'hello world'.show
    'bye'.show

Note

Indentation(tab) is necessary. If you are using spaces, it must be 4 spaces per tab.

Also, by default, the Prelude library will be loaded.

Comments