Module: TypedOperation::Operations::PartialApplication
- Included in:
- Base, ImmutableBase
- Defined in:
- lib/typed_operation/operations/partial_application.rb
Overview
Enables partial application of operation parameters via #with and currying via #curry.
Instance Method Summary collapse
-
#curry ⇒ Object
: () -> Curried.
-
#with ⇒ Object
(also: #[])
: (*untyped, **untyped) -> PartiallyApplied.
Instance Method Details
#curry ⇒ Object
: () -> Curried
15 16 17 |
# File 'lib/typed_operation/operations/partial_application.rb', line 15 def curry Curried.new(self) end |
#with ⇒ Object Also known as: []
: (*untyped, **untyped) -> PartiallyApplied
9 10 11 |
# File 'lib/typed_operation/operations/partial_application.rb', line 9 def with(...) PartiallyApplied.new(self, ...).with end |