com.thoughtworks.dsl.keywords
Iterates though each element in elements.
杨博 (Yang Bo)
Each keywords can be used to calculate cartesian product.
def cartesianProduct = List(!Each(Array(1, 2, 3)) * !Each(Vector(1, 10, 100, 1000))) cartesianProduct should be(List(1, 10, 100, 1000, 2, 20, 200, 2000, 3, 30, 300, 3000))
comprehension if you want to use traditional for comprehension instead of !-notation.
for
An alias to cpsApply.
Iterates though each element in elements.
Author:
杨博 (Yang Bo)
Each keywords can be used to calculate cartesian product.
comprehension if you want to use traditional
for
comprehension instead of !-notation.