Anonymous user
First-class functions/Use numbers analogously: Difference between revisions
First-class functions/Use numbers analogously (view source)
Revision as of 08:39, 11 March 2020
, 4 years ago→{{header|Elena}}
(Merge omitted languages and add Processing) |
|||
Line 360:
=={{header|Elena}}==
{{trans|C#}}
ELENA
<lang elena>import system'routines;
import extensions;
Line 373:
real zi := 1.0r / (x + y);
var numlist := new real[]
var numlisti := new real[]
var multiplied := numlist.zipBy(numlisti, (n1,n2 => (m => n1 * n2 * m) )).toArray();
|