#1414: Change ??A .sort() methods to return self
-----------------------------+----------------------------------------------
Reporter: Austin_Hastings | Type: todo
Status: new | Priority: normal
Milestone: | Component: none
Version: 2.0.0 | Severity: medium
Keywords: | Lang:
Patch: | Platform:
-----------------------------+----------------------------------------------
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.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1414>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets