[Wrapl-discussion] expr1 \ expr2
Brought to you by:
rajamukherji
|
From: Roman M. <rom...@gm...> - 2010-08-12 11:27:46
|
Hi Raja, I noticed one small inconsistency with "expr1 \ expr2" Tutorial Chapter 3 (http://wrapl.sourceforge.net/ref/tutorial/chapter3.html) "expr1 \ expr2 produces the values produced by expr1 for each value produced by expr2" ALL 1:to(3) \ 10:to(12); actualy returns [1, 1, 1, 2, 2, 2, 3, 3, 3] not [1, 2, 3, 1, 2, 3, 1, 2, 3] as the example shows Tutorial states that "expr1 \ expr2" is similar to "expr1 & expr2", such that it returns the value of left for each right, in contrast to the value of right for each left. But that (factual) way their (& and \) results are not symmetrical. -- the values of (left for each right) [1, 1, 1, 2, 2, 2, 3, 3, 3] vs. (the values of left) for each right [1, 2, 3, 1, 2, 3, 1, 2, 3] -- I guess it would make sense for it to behave that way: [1, 2, 3, 1, 2, 3, 1, 2, 3] -- Roman |