0 people like it.
Like the snippet!
A small set of operators for converting boolean expressions to an optional type on the principle of false -> None, true -> Some value.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: |
|
Link: | http://fssnip.net/872 |
Posted: | 2 years ago |
Author: | Pavel Tatarintsev |
Tags: | map , operators |