Arc Forumnew | comments | leaders | submitlogin
One can only print concatenated strings in their entirety.
2 points by goodbyejim 6077 days ago | 2 comments
To print an entire list of strings one must concatenate it... (prn (+ "goodbye, " "cruel" " world")) goodbye, cruel world "goodbye, cruel world"


2 points by ryantmulligan 6077 days ago | link

To print it you don't need to concatenate it. The prn procedure unfortunately returns the first argument, not the result of the output.

  arc> (prn (+ "goodbye, " "cruel" " world"))
  goodbye, cruel world
  "goodbye, cruel world"
  arc> (prn "goodbye, " "cruel" " world")
  goodbye, cruel world
  "goodbye, "

-----

3 points by pg 6077 days ago | link

If the resulting string is what you want, call string instead of prn.

-----