summaryrefslogtreecommitdiff
path: root/META-INF
diff options
context:
space:
mode:
authorDen Shabalin <den.shabalin@gmail.com>2013-10-31 13:41:53 +0100
committerDen Shabalin <den.shabalin@gmail.com>2013-11-12 14:04:42 +0100
commita4a3ab0d722412b9ecf267b178bb866087867cf9 (patch)
tree2f3a55eeb5c8a8e05fbf302f86ed26201b7b9c7b /META-INF
parentd73680557d4037bed69bc0ce982566f3915361c3 (diff)
downloadscala-a4a3ab0d722412b9ecf267b178bb866087867cf9.tar.gz
scala-a4a3ab0d722412b9ecf267b178bb866087867cf9.tar.bz2
scala-a4a3ab0d722412b9ecf267b178bb866087867cf9.zip
implement inverse transformation to mkFor
This effectively reconstructs a sequence of enumerators and body from the tree produced by mkFor. This lets to define bi-directional SyntacticFor and SyntacticForYield constructors/extractors to work with for loops. Correctness of the transformation is tested by a scalacheck test that generates a sequence of random enumerators, sugars them into maps/flatMaps/foreach/withFilter calls and reconstructs them back.
Diffstat (limited to 'META-INF')
0 files changed, 0 insertions, 0 deletions