Ferite - Examples

Examples

Basic "Hello World" program:

uses "console"; Console.println( "Hello World" );

Using closures/lambda functions:

// Define some numbers: number x = 10, y = 15, z = 30; // A closure to add those numbers: object o = closure { return x + y + z; }; // Use the closure: Console.println(o.invoke); // Change the numbers: x = 5; y = 10; z = 5; // Use the closure again: Console.println(o.invoke);

Iterating through an array:

Array.each( ) using ( value ) { Console.println( value * 5 ); };

These are just some of the beginners examples available.

Read more about this topic:  Ferite

Other articles related to "examples":

Destroyer - Post-war
... Examples include the British Daring class, US Forrest Sherman-class, and the Soviet Kotlin-class destroyers ... Examples include the US FRAM I programme and the British Type 15 frigates converted from fleet destroyers ... Examples include the Soviet Kashin-class, the British County class, and the American Charles F ...
English Orthography - Spelling Irregularities - "Ough" Words
... though /oʊ/ as in toe (other examples dough) tough /ʌf/ as in cuff (other examples rough, enough) cough /ɒf/ as in off (other examples Gough (name, some pronunciations)) hiccough (a now uncommon variant of ...
Proverbs in Advertising
... Tatira has given a number of examples of proverbs used in advertising in Zimbabwe ... However, unlike the examples given above in English, all of which are anti-proverbs, Tatira's examples are standard proverbs ... above are meant to make a potential customer smile, in one of the Zimbabwean examples "both the content of the proverb and the fact that it is phrased as ...

Famous quotes containing the word examples:

    Histories are more full of examples of the fidelity of dogs than of friends.
    Alexander Pope (1688–1744)

    It is hardly to be believed how spiritual reflections when mixed with a little physics can hold people’s attention and give them a livelier idea of God than do the often ill-applied examples of his wrath.
    —G.C. (Georg Christoph)

    There are many examples of women that have excelled in learning, and even in war, but this is no reason we should bring ‘em all up to Latin and Greek or else military discipline, instead of needle-work and housewifry.
    Bernard Mandeville (1670–1733)