Function prototype: Difference between revisions

Content added Content deleted
Line 453: Line 453:
l.length; // 2
l.length; // 2
</lang>
</lang>

=={{header|Luck}}==
<lang Luck>function noargs(): int = ? ;;
function twoargs(x:int, y:int): int = ? ;;

/* underscore means ignore and is not bound to lexical scope */
function twoargs(_:bool, _:bool): int = ? ;;

function anyargs(xs: ...): int = ? ;;
function plusargs(x:int, xs: ...): int = ? ;;</lang>


=={{header|Nim}}==
=={{header|Nim}}==