diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:27 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:27 -0800 |
commit | fa3f23105ddcf07c5900de47f19af43d1db1b597 (patch) | |
tree | b2c6cce6b97698098f50cbc78c23fdc0f8d401ab /obj2str.scm | |
parent | f24b9140d6f74804d5599ec225717d38ca443813 (diff) | |
download | slib-fa3f23105ddcf07c5900de47f19af43d1db1b597.tar.gz slib-fa3f23105ddcf07c5900de47f19af43d1db1b597.zip |
Import Upstream version 2c3upstream/2c3
Diffstat (limited to 'obj2str.scm')
-rw-r--r-- | obj2str.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/obj2str.scm b/obj2str.scm index 19d8464..a8445f6 100644 --- a/obj2str.scm +++ b/obj2str.scm @@ -19,6 +19,7 @@ (require 'string-port) +;;@body Returns the textual representation of @1 as a string. (define (object->string obj) (cond ((symbol? obj) (symbol->string obj)) ((number? obj) (number->string obj)) @@ -43,6 +44,8 @@ ; (object->limited-string obj limit) returns a string containing the first ; 'limit' characters of the textual representation of 'obj'. +;;@body Returns the textual representation of @1 as a string of length +;;at most @2. (define (object->limited-string obj limit) (require 'generic-write) (let ((result '()) (left limit)) |