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

Included in:
Dry::Monads, 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:


72
73
74
# File 'lib/dry/monads/lazy.rb', line 72

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