Comparison to other languages Schwartzian transform




in elixir, enum.sort_by/2 , enum.sort_by/3 methods allow users perform schwartzian transform module implements enumerable protocol.
in perl 6, 1 needs supply comparator lambda takes 1 argument perform schwartzian transform under hood:

would sort on string representation using schwartzian transform,

would same converting elements compare before each comparison.




^ how to/sorting/decorate sort undecorate . 
^ ruby-doc core-api classes . retrieved 14 september 2011. 






Comments

Popular posts from this blog

Thenkalai and Vadakalai sub-traditions Sri Vaishnavism

Discography Pallas (band)

History Flexible-fuel vehicles in the United States