Sha256: a494e8ae389302a572c483a2f44899d938c43c987e70049c19c9ebe4e2a7d5d7

Contents?: true

Size: 467 Bytes

Versions: 2

Compression:

Stored size: 467 Bytes

Contents

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Returns a new proc that is the functional composition of two procs, in order.
- !ruby/struct:SM::Flow::VERB 
  body: "  a = lambda { |x| x + 4 }\n  b = lambda { |y| y / 2 }\n\n  a.compose(b).call(4)  #=> 6\n  b.compose(a).call(4)  #=> 4\n\n  CREDIT: Dave\n"
full_name: Proc#compose
is_singleton: false
name: compose
params: (g)
visibility: public

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-2.4.2 doc/ri/Proc/compose-i.yaml
facets-2.4.3 doc/ri/Proc/compose-i.yaml