Top Level Namespace
Defined Under Namespace
Modules: Kernel, Kleisli
Classes: Blank, Module, Object
Constant Summary
collapse
- Maybe =
Kleisli::Maybe.method(:lift)
- Right =
Kleisli::Either::Right.method(:new)
- Left =
Kleisli::Either::Left.method(:new)
- F =
Kleisli::ComposedFn.new
Instance Method Summary
collapse
Instance Method Details
#Future(v = nil, &block) ⇒ Object
31
32
33
|
# File 'lib/kleisli/future.rb', line 31
def Future(v=nil, &block)
Kleisli::Future.lift(v, &block)
end
|
77
78
79
|
# File 'lib/kleisli/maybe.rb', line 77
def Maybe(v)
Maybe.(v)
end
|
81
82
83
|
# File 'lib/kleisli/maybe.rb', line 81
def None()
Maybe(nil)
end
|
85
86
87
|
# File 'lib/kleisli/maybe.rb', line 85
def Some(v)
Maybe(v)
end
|
54
55
56
|
# File 'lib/kleisli/try.rb', line 54
def Try(&f)
Kleisli::Try.lift(f)
end
|