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

#cObject



21
# File 'lib/kansuu/combinator.rb', line 21

def c; flip end

#constObject



13
14
15
# File 'lib/kansuu/combinator.rb', line 13

def const
  -> x, y { x } % 2
end

#iObject



17
# File 'lib/kansuu/combinator.rb', line 17

def i; id end

#idObject



9
10
11
# File 'lib/kansuu/combinator.rb', line 9

def id
  -> x { x }
end

#kObject



19
# File 'lib/kansuu/combinator.rb', line 19

def k; const end