renkun-ken / pipeR

Multi-Paradigm Pipeline Implementation
Other
169 stars 39 forks source link

Allow using . to refer to Pipe value in generic functions #44

Closed renkun-ken closed 10 years ago

renkun-ken commented 10 years ago

Allow the following usage:

> Pipe(1:10)[length(.)]
$value : integer 
------
[1] 10

where . in [ and [[ etc. are evaluated with . representing Pipe value.