Module: Kansuu::Combinator
- Extended by:
- Util
- Defined in:
- lib/kansuu/combinator.rb
Instance Method Summary
collapse
Methods included from Util
__define_func_from_method, __define_funcs_from_method, __module_functionize
Instance Method Details
#c ⇒ Object
21
|
# File 'lib/kansuu/combinator.rb', line 21
def c; flip end
|
#const ⇒ Object
13
14
15
|
# File 'lib/kansuu/combinator.rb', line 13
def const
-> x, y { x } % 2
end
|
#i ⇒ Object
17
|
# File 'lib/kansuu/combinator.rb', line 17
def i; id end
|
#id ⇒ Object
9
10
11
|
# File 'lib/kansuu/combinator.rb', line 9
def id
-> x { x }
end
|
#k ⇒ Object
19
|
# File 'lib/kansuu/combinator.rb', line 19
def k; const end
|