[E-Lang] An Attempted Restatement of Hydro's Semantics
Marc Stiegler
marcs@skyhunter.com
Tue, 3 Apr 2001 11:42:50 -0700
> Thinking about the last time I used indexes in Java:
>
> You have two lists {"Mark","Mark","Tyler","Ralph"} and
> {"Stiegler","Miller","Close","Hartley"} and you want to print
> Mark Stiegler
> Mark Miller
> Tyler Close
> Ralph Hartley
A very cool example: effectively what you need to do is walk 2 lists in
parallel, which even the E for...loop will not do for you automatically. I
have not used this pattern recently, but I have used it. Unless someone has
another clever solution for this, I find it compelling.
--marcs