Yellowstone sequence: Difference between revisions

m
m (→‎{{header|Perl 6}}: Slightly less inefficient)
Line 255:
{{trans|Julia}}
This sequence is limited to the max size of a Dictionary, 64k
<lang zkl>fcn yellowstoneW{ // --> iterator
Walker.zero().tweak(fcn(a,b){
foreach i in ([1..]){
Line 275:
Plot using Gnuplot
<lang zkl>gnuplot:=System.popen("gnuplot","w");
gnuplot.writeln("unset key; plot '-'");
yellowstoneW().pump(1001_000, gnuplot.writeln,fcn.fp(n" "){); // String(" 1\n", " 2\n)", });...
gnuplot.writeln("e");
gnuplot.flush();
ask("Hit return to finish"); gnuplot.close();</lang>
Offsite Image: [http://www.zenkinetic.com/Images/RosettaCode/yellowstone1000.zkl.png yellowstone]
Anonymous user