Top Level Namespace
Defined Under Namespace
Modules: CampingFlash, CampingHooks, Context, HttpAcceptLanguage, Tarpaulin, Tilt Classes: ContextLogger, Endless, File
Instance Method Summary collapse
-
#endless_path(head, tail = 1) ⇒ Object
needs to start at 1 cuz head*1 = head (should be identity product).
Instance Method Details
#endless_path(head, tail = 1) ⇒ Object
needs to start at 1 cuz head*1 = head (should be identity product)
48 49 50 |
# 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 |