Ticket #1414 (closed todo: done)

Opened 5 years ago

Last modified 5 years ago

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

Changed 5 years ago by Austin_Hastings

Note: RPA = ResizablePmcArray, and FPA = FixedPmcArray

Changed 5 years ago by NotFound

  • status changed from new to closed
  • resolution set to done

Done in r43588

Note: See TracTickets for help on using tickets.