Task

Show how to return more than one value from a function.




 
{def foo
 {lambda {:n}
  {cons {- :n 1} {+ :n 1}}}}       // two values
-> foo
 
{foo 10}
-> (9 11)
 
{def bar 
 {lambda {:n}
  {A.new {- :n 1} :n {+ :n 1} }}}  // three values and more
-> bar
 
{bar 10}
-> [9,10,11]
 