by Patrick S. Li, Jonathan Bachrach, George Necula
Optionally-typed, prototype-based, compiled, general-purpose language

L.B. Stanza (or Stanza for short) is a new optionally-typed general purpose programming language from the University of California, Berkeley. Stanza was designed to help programmers tackle the complexity of architecting large programs and significantly increase the productivity of application programmers across the entire software development life cycle.

defn lazy-flatten (x) :
   generate :
      defn loop (x) :
         match(x) :
            (x:List) : do(loop, x)
            (x) : yield(x)
      loop(x)

val first-4 = take-n(4, lazy-flatten(`(a b (c (d e f (g) (h)) (i j)))))
println(first-4)
Information updated 06/26/16
View Comments