Anonymous user
Function definition: Difference between revisions
integer x integer, float x float, sequence x sequence, integer x sequence, sequence x float
m (→{{header|Icon}} and {{header|Unicon}}: -workswith) |
(integer x integer, float x float, sequence x sequence, integer x sequence, sequence x float) |
||
Line 254:
sequence b = {5,6,7,8}
? multiply(
? multiply( 3.14159, 3.14159 )
? multiply( a, b )
? multiply( a, 7 )
? multiply( 10.39564, b )</lang>
which outputs
<pre>81
<code>{5,12,21,32}</code>▼
9.869587728
{7,14,21,28}
{51.9782,62.37384,72.76948,83.16512}</pre>
=={{header|Erlang}}==
|