Module: System::Collections::ObjectLambdas

Extended by:
ObjectLambdas
Included in:
ObjectLambdas, F
Defined in:
lib/raskell/f.rb

Instance Method Summary collapse

Instance Method Details

#eqObject



18
19
20
# File 'lib/raskell/f.rb', line 18

def eq
  @@eq||= ->(x,y) { x === y }
end

#equalObject



14
15
16
# File 'lib/raskell/f.rb', line 14

def equal
  @@equal||= ->(x,y) { x == y }
end

#equalsObject



10
11
12
# File 'lib/raskell/f.rb', line 10

def equals
  @@equals||= ->(x,y) { x == y }
end

#idObject



6
7
8
# File 'lib/raskell/f.rb', line 6

def id
  Identity.new # ->(x) { x }
end

#listObject



22
23
24
# File 'lib/raskell/f.rb', line 22

def list
  @@list||= ->(*items) { items }
end