Fractran: Difference between revisions

Content added Content deleted
(→‎Revised Plan: Ah, the details that are freshly emphasised when code is used in a different context..)
Line 2,447: Line 2,447:


=={{header|Ruby}}==
=={{header|Ruby}}==
<lang ruby>str = %w[17/91 78/85 19/51 23/38 29/33 77/29 95/23 77/19 1/17 11/13 13/11 15/14 15/2 55/1]
<lang ruby>ar = %w[17/91 78/85 19/51 23/38 29/33 77/29 95/23 77/19 1/17 11/13 13/11 15/14 15/2 55/1]
FractalProgram = str.map(&:to_r) #=> array of rationals
FractalProgram = ar.map(&:to_r) #=> array of rationals


Runner = Enumerator.new do |y|
Runner = Enumerator.new do |y|