console input & output
Clojure | Red | Ruby | |
---|---|---|---|
output | print println pr prn |
prin print probe |
print puts p |
input | (println (read-line)) | name: input print name name: ask “What is your name: “ print name |
line = gets puts line |
cmd-line args | (pr *command-line-args*) $ clj args.clj cat dog (“cat” “dog”) |
probe system/script/args $ red args.red 78 A Red “78 A Red” |
p ARGV $ ruby args.rb cat dog [“ant”, “bee”, “cat”, “dog”] |