58pages on
this wiki
this wiki
Paragraphs are declared with the text "I learned
", followed by the name of the paragraph and a punctuation. Mane paragraphs start with "Today I learned
".
Return types can be left blank for a void return type, or will follow the paragraph name and the word "with
" or "as
.
Parameters (values that are sent to the paragraph) follow the return type and the word "using
" and are separated from each other with "and
".
Examples
Edit
Plain declaration (no return, no parameters):
-
I learned
how to greet you
.
Declaration for a paragraph which returns a number:
-
I learned
to randomize
with
a number
.
Declaration for a paragraph which takes in an array of numbers called "Fibonacci
":
-
I learned
how to multiply
as
a number
using
the numbers
Fibonacci
.