Jump to content

Display a linear combination: Difference between revisions

m
→‎{{header|zkl}}: Fix link: Perl 6 --> Raku
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
m (→‎{{header|zkl}}: Fix link: Perl 6 --> Raku)
Line 1,391:
 
=={{header|zkl}}==
{{trans|Perl 6Raku}}
<lang zkl>fcn linearCombination(coeffs){
[1..].zipWith(fcn(n,c){ if(c==0) "" else "%s*e(%s)".fmt(c,n) },coeffs)
2,392

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.