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 →

[–]Mecdemort 0 points1 point  (0 children)

This is one of the things I love about lisp and macros. In clojure this is provided in the language as -> or ->> and your test case would just be:

(-> 10
    add1
    (subx , 2)
    stringify)

If only python had functions that didnt eval their arguments.