3 Reusable Code Snippet Topics
Remove Filter
|
|
This snippet defines a simple decorator to post-process a function's return value through a sequence of filters. As a first application, the decorator can transform a generator function into a function returning a sequence type (list, tuple, dict). |
|
Another quick code over breakfast inspired by 'spying' the other forums. |
|
This snippet defines a function to merge sorted iterables containing similar items into a single iterable. Items are supposed to be sorted in ascending order. Only one item per iterable is stored at a time. |
The End.