Ticket #1414 (closed todo: done)
Change ??A .sort() methods to return self
Reported by: | Austin_Hastings | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | none | Version: | 2.0.0 |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | Platform: |
Description
Presently, the RPA .sort method is inherited from FPA (this is okay). But the method when called does not return anything.
I would like to be able to write, in NQP, something like:
for %hash.keys.sort { say($_); }
Changing the return value from nothing (currently) to self seems like a low-impact change that offers decent value.
Change History
Note: See
TracTickets for help on using
tickets.