diff options
author | Den Shabalin <den.shabalin@gmail.com> | 2013-10-31 13:41:53 +0100 |
---|---|---|
committer | Den Shabalin <den.shabalin@gmail.com> | 2013-11-12 14:04:42 +0100 |
commit | a4a3ab0d722412b9ecf267b178bb866087867cf9 (patch) | |
tree | 2f3a55eeb5c8a8e05fbf302f86ed26201b7b9c7b /META-INF | |
parent | d73680557d4037bed69bc0ce982566f3915361c3 (diff) | |
download | scala-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