Call a function: Difference between revisions
Content added Content deleted
No edit summary |
(→{{header|Erlang}}: Changed pre tag to lang + erlang sytax) |
||
Line 173: | Line 173: | ||
=={{header|Erlang}}== |
=={{header|Erlang}}== |
||
<lang erlang> |
|||
<pre> |
|||
no_argument() |
no_argument() |
||
one_argument( Arg ) |
one_argument( Arg ) |
||
Line 184: | Line 184: | ||
% No way to distinguish builtin/user functions |
% No way to distinguish builtin/user functions |
||
% Subroutines? |
% Subroutines? |
||
Arguments are passed by reference, but you can not change them. |
% Arguments are passed by reference, but you can not change them. |
||
Partial application is possible (a function returns a function that has one argument bound) |
% Partial application is possible (a function returns a function that has one argument bound) |
||
</ |
</lang> |
||
=={{header|Icon}} and {{header|Unicon}}== |
=={{header|Icon}} and {{header|Unicon}}== |
||
Icon and Unicon have generalized procedures and syntax that are used to implement functions, subroutines and generators. |
Icon and Unicon have generalized procedures and syntax that are used to implement functions, subroutines and generators. |