> > Isn't this better handled with a (revamped and faster) tie? > > > > tie %professors, 'Tie::Sorted', ^a->name cmp ^b->name; > > > > tie %students, 'Tie::Sorted', > > $$students{^1}{GPA} <=> $$students{^0}{GPA} }; > > > > Damian > > It's a shorthand for it. And the other thing, I don't want to overload everything, just the iterator. And not really so much to have sorted hashes, but to explore syntaces for getting into the internals of the containers without defining entirely new containers (tie) How about %students : ( sort = $$students{^1}{GPA} <=> $$students{^0}{GPA} }); which uses the C< : qualifier> syntax to indicate a new-with-perl6 thing, and uses it in a new way, assigning a value to the qualifier, as indcated by the round brackets. Suggesting that qualifiers can be assigned to, as well as flagging. -- David Nicol 816.235.1187 [EMAIL PROTECTED] Does despair.com sell a discordian calendar?
- RFC 124 (v1) Sort order for any hash Perl6 RFC Librarian
- Re: RFC 124 (v1) Sort order for any hash Tom Hughes
- Re: RFC 124 (v1) Sort order for any hash Hildo Biersma
- Re: RFC 124 (v1) Sort order for any hash Hildo Biersma
- Re: RFC 124 (v1) Sort order for any hash Jonathan Scott Duff
- Re: RFC 124 (v1) Sort order for any h... David L. Nicol
- Re: RFC 124 (v1) Sort order for any hash Damian Conway
- Re: RFC 124 (v1) Sort order for any hash David L. Nicol
- Re: RFC 124 (v1) Sort order for any hash David L. Nicol
- Re: RFC 124 (v1) Sort order for any hash Damian Conway
- Re: RFC 124 (v1) Sort order for any h... Jeremy Howard
- Re: RFC 124 (v1) Sort order for any h... Damian Conway
- Re: RFC 124 (v1) Sort order for ... David L. Nicol
- Re: RFC for $ME class variable ... Damian Conway
- Re: RFC for $ME class variab... Randal L. Schwartz
- Re: RFC for $ME class va... John Siracusa
- Re: RFC for $ME class va... Damian Conway
- Re: RFC for $ME class va... John Siracusa
- Re: RFC for $ME class va... Nathan Wiger