pyret is an actively used programming language created in 2011.

8Years Old 933Users 0Jobs
  • pyret ranks in the top 50% of languages
  • the pyret website
  • pyret on github
  • pyret first appeared in 2011
  • I have 20 facts about pyret. what would you like to know? email me and let me know how I can help.

Example code from the web:

data BinTree:
 | leaf
 | node(value, left, right)
fun tree-sum(t):
  doc: "Calculate the sum of node values"
  cases (BinTree) t:
    | leaf => 0
    | node(v, l, r) =>
      v + tree-sum(l) + tree-sum(r)
  tree-sum(leaf) is 0
  node4 = node(4, leaf, leaf)
  tree-sum(node(5, node4, leaf)) is 9

Last updated November 16th, 2019