class Object
Public Instance Methods
endless_path(head, tail=1)
click to toggle source
# File lib/tarpaulin/endless.rb, line 48 def endless_path(head, tail=1) # needs to start at 1 cuz head*1 = head (should be identity product) Endless.new { [[tail, head * tail], endless_path(head, tail+1)] } end