LSaldyt / Qurry

Qurry (was) a prototype for a functional quantum programming language. It incorporated many aspects of functional programming (Haskell, Clojure), but also took standard design philosophies from C++, Python, and other "traditional" languages. [category: quantum]
MIT License
25 stars 7 forks source link

Add functions #4

Open LSaldyt opened 5 years ago

LSaldyt commented 5 years ago

Just add a simple (defn f [args] (body)) construct in the lib/constructs folder. See lib/constructs/if.py for an example

LSaldyt commented 5 years ago

True functions require more complicated entities, like a stack.