Suppose a function foo writes to standard output:
(defun foo ()
(format t "Hello, world"))
To capture its output in a character string, *standard-output* can be bound to a string stream and called:
(with-output-to-string (*standard-output*)
(foo))
A következő címkéjű bejegyzések mutatása: dynamic. Összes bejegyzés megjelenítése
A következő címkéjű bejegyzések mutatása: dynamic. Összes bejegyzés megjelenítése
2011. szept. 24.
Corba Hello World!
class Hello
def main
print 'Hello, World'
Labels:
Corba,
dynamic,
Hello World,
inferred,
Microsoft .NET,
Mono,
multi-paradigm,
object-oriented,
static,
strong
Clojure Hello World!
(println "Hello, world!")
Labels:
Clojure,
dynamic,
functional,
multi-paradigm,
strong
Clean Hello World!
module hello
Start :: {#Char}
Start = "Hello, world!"
Labels:
Clean,
dynamic,
functional,
static,
strong
Feliratkozás:
Bejegyzések (Atom)