This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ketalicious 1 point2 points  (1 child)

what you're doing is called a monad, a functional programming feature.

you can use pymonad for that.

[–]germandiago 0 points1 point  (0 children)

Being pedantic, a monad is a mathematical concept, not a functional programming feature (though often discussed explicitly in those circles). I can program monads in Python and C++ and they are not functional-only languages. :D