Scheme equivalent of print function in Clojure -


i'm looking @ scheme (dr-scheme) coming clojure.

in clojure can type

(print 'a 'b 'c) 

and print function figures out arbitrary number of non-string arguments , prints them out separated space.

in scheme print function expects single argument.

is there way equivalent of clojure's print function in scheme?

interesting... can roll 1 of pretty easily, i'm not sure see need it. instance:

#lang racket  (define (print-many . args)   (display    (apply     string-append     (add-between (map print-to-string args) " "))))  (define (print-to-string arg) (format "~v" arg))  (print-many 3 4 5 'b '(3 3 4)) 

in general, though, i'm thinking if you're generating output user, you're going want better control on output, , if you're not generating output user, you're happy slapping pair of parens around , making list.

what's use case this?


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -