in reply to Re: RFC: Junction.pm
in thread RFC: Junction.pm
Tanktalus asked above about if (all(@x) eq any(@y) {...}. I can see how useful that would be, but would have to experiment to find a way to implement it without getting as big as Q::S, while not making the code too ugly.
Actualy it is not all the difficult. Realy once you have overloaded the operators perl manages most of the extra magic to make that work without bloating your code. The code i linked to before is under 60 lines and handles that as well as embeding different any() and all() objects inside each other. For instance it handles print "YEA" if all( any(1..5), any(1..10), any(1..20)) > all(2..4); as expected.
/me is still dieing to see how you approached the problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: RFC: Junction.pm
by fireartist (Chaplain) on May 03, 2005 at 17:09 UTC | |
by eric256 (Parson) on May 03, 2005 at 20:19 UTC | |
by fireartist (Chaplain) on May 04, 2005 at 09:01 UTC | |
by eric256 (Parson) on May 04, 2005 at 15:11 UTC | |
by dragonchild (Archbishop) on May 04, 2005 at 15:18 UTC | |
| |
by dragonchild (Archbishop) on May 03, 2005 at 17:27 UTC |