2 people like it.
Like the snippet!
This is an attempt to produce similar behavior as seen in the sorted( ) function in Python. Supporting only one of the three optional arguments. The key - Specifies a function of one argument that is used to extract a comparison key from each list element
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: |
|
| Link: | http://fssnip.net/4C |
| Posted: | 14 years ago |
| Author: | Cameron Frederick |
| Tags: | sorting , sorted , list |