Continued fraction: Difference between revisions

Content deleted Content added
Grondilu (talk | contribs)
→‎{{header|Perl 6}}: simplification + neglecting extra credit
Grondilu (talk | contribs)
m →‎{{header|Perl 6}}: forgot to remove 'take'
Line 737:
<lang Perl 6>sub infix:<⚬>(&f, &g) { -> $x { &f(&g($x)) } }
sub continued-fraction(@a, @b) {
map { $_(Inf) }, [\⚬] map { take @a[$_] + @b[$_] / * }, 0 .. *
}