Arc Forumnew | comments | leaders | submit | povman's commentslogin
1 point by povman 6132 days ago | link | parent | on: Arc for Ruby programmers

(Basically) the same program in Haskell (sans a couple of import statements):

  choices [] sofar = putStrLn (intercalate " " sofar)
  choices menu sofar = forM_ (head menu) (\item -> choices (tail menu) (item:sofar))
  main = choices [["small", "medium", "large"], ["vanilla", "ultra chocolate", "lychee", "rum raisin", "ginger"], ["cone", "cup"]] []
bring on the converts!

-----