/usr/lib/s9fes/help/write-to-string is in scheme9 2010.11.13-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | S9 LIB (write-to-string object) ==> string
(display-to-string object) ==> string
(load-from-library "write-to-string.scm")
Write the external representation of the given OBJECT to a fresh
string. WRITE-TO-STRING is like WRITE but writes its output to a
string instead of an output port. DISPLAY-TO-STRING is like
DISPLAY but writes its output to a string.
(write-to-string '(a 1 #\c #(v) #t "str" "\"s\"" (a . d)))
==> "(a 1 #\\c #(v) #t \"str\" \"\\\"s\\\"\" (a . d))"
(display-to-string '(a 1 #\c #(v) #t "str" "\"s\"" (a . d)))
==> "(a 1 c #(v) #t str \"s\" (a . d))"
|