Talk:Decorate-sort-undecorate idiom: Difference between revisions

m
no edit summary
(Functionally Speaking)
 
mNo edit summary
 
Line 2:
 
Some languages may support the task as specified with their version of the higher order function sortBy or similar. In general I think the general purpose HOF would be groupBy in functional languages.--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 17:26, 31 July 2023 (UTC)
 
Whether the key function is cached is what makes the decorate-sort-undecorate idiom efficient in situations where the key function is an expensive calculation. Not all groupBy sorts are cached. See for example https://github.com/pandas-dev/pandas/issues/51077 --[[User:Wherrera|Wherrera]] ([[User talk:Wherrera|talk]]) 18:25, 31 July 2023 (UTC)
4,108

edits