Jump to content

Documentation: Difference between revisions

no edit summary
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
No edit summary
Line 896:
fun add(member: T): Int { ... }
}</lang>
 
=={{header|Lambdatalk}}==
 
Lambdatalk works in a small wiki, lambdatank, where can be written easily (as in a standard text editor) any informations about the keywords, the set of primitives, and the eventual user defined functions and libraries. For instance this is how a function is built, displayed and tested in the browser's window:
<lang scheme>
'{def add // define the name
{lambda {:a :b} // for a function with two arguments
{+ :a :b} // whose body calls the + primitive on them
} // end function
} // end define
-> add
 
'{add 3 4} // call the function on two values
-> 7 // the result
</lang>
 
=={{header|Logtalk}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.