asuiu / pyxtension

Pure Python extensions library that includes Scala-like streams, Json with attribute access syntax, and other common use stuff
MIT License
43 stars 1 forks source link

Implement try_map() method on streams #8

Open asuiu opened 6 years ago

asuiu commented 6 years ago

It should try the map function, and if it throws exception return an instance of custom "Fail" object that evaluates to False for filter() functions, and contain the exception data (stack trace, etc..)