renkun-ken / rlist

A Toolbox for Non-Tabular Data Manipulation
Other
202 stars 28 forks source link

Support one-sided formula as lambda expression #89

Closed renkun-ken closed 9 years ago

renkun-ken commented 9 years ago

The current implementation does not support one-sided formula. Formula can be used to program with rlist functions that use NSE to work.

> list.map(1:10, ~ . + 1)
Error: Invalid lambda expression

Improve the lambda expression parser to support ~ expr as equal to expr.