Make STRING-LENGTH a foldable operator.
authorJoe Marshall <jmarshall@alum.mit.edu>
Mon, 29 Mar 2010 17:14:45 +0000 (10:14 -0700)
committerJoe Marshall <jmarshall@alum.mit.edu>
Mon, 29 Mar 2010 17:14:45 +0000 (10:14 -0700)
src/runtime/scomb.scm

index 5a92ec731651ca3b276e6ab0ec5e3f5d24778b09..d9d1c05b690c08c44a8ce2f0dbea3ca37b3e7be9 100644 (file)
@@ -114,10 +114,11 @@ USA.
               POSITIVE-FIXNUM?
               POSITIVE?
               PRIMITIVE-PROCEDURE-ARITY
-              ;; STRING->SYMBOL is a special case.  Strings have can
+              ;; STRING->SYMBOL is a special case.  Strings can
               ;; be side-effected, but it is useful to be able to
               ;; constant fold this primitive anyway.
               STRING->SYMBOL
+              STRING-LENGTH
               ZERO-FIXNUM?
               ZERO?
               ))))