Module: Dry::Monads::Lazy::Mixin::Constructors

Included in:
Dry::Monads::Lazy::Mixin
Defined in:
lib/dry/monads/lazy.rb

Overview

Lazy constructors

Instance Method Summary collapse

Instance Method Details

#Lazy(&block) ⇒ Lazy

Lazy computation contructor

Parameters:

  • block (Proc)

Returns:



82
83
84
# File 'lib/dry/monads/lazy.rb', line 82

def Lazy(&block)
  Lazy.new(&block)
end