| I wrote this code just to see how ridiculous I could be. Arc doesn't accept the function no matter how many closing brackets I use. Any help? (def beer (x)
    (with (y t z x)
      (while (is y t)
        (do
          (prn (if (is x 0) "No more" x) 
               " bottle"
               (if (is x 1) "" "s")
               " of beer on the wall, " 
               (if (is x 0) "no more" x) bottle"
               (if (is x 1) "" "s")
               " of beer!")
          (if (is x 0)
              (do     
                (prn "Go to the store and buy some more, "                      z 
                     " bottle"                     (if (is z 1) "" "s")                      " of beer on the wall!")                (= y nil))                                                              (prn "You take one down, pass it around, "                    (if (is (- x 1) 0) "no more" (- x 1))                    " bottle" 
                   (if (is (- x 1) 1) "" "s") 
                   " of beer on the wall!"))
          (prn)                      
          (= x (- x 1)))))) (edit: sorry, i'm trying to get the code formatting to work but I can't seem to get it. "Text after a blank line that is indented by two or more spaces is reproduced verbatim." I don't know why it's not working) |