core: Remove string_length.

* module/mes/scm.mes (string-length): New function.
This commit is contained in:
Jan Nieuwenhuizen 2016-12-23 21:26:16 +01:00
parent be786c00a3
commit 9e6d862c5b
2 changed files with 3 additions and 7 deletions

View File

@ -188,6 +188,9 @@
;;; Strings/srfi-13
(define (string-length s)
(length (string->list s)))
(define (string-ref s k)
(list-ref (string->list s) k))

View File

@ -18,13 +18,6 @@
* along with Mes. If not, see <http://www.gnu.org/licenses/>.
*/
SCM
string_length (SCM x)
{
assert (TYPE (x) == STRING);
return MAKE_NUMBER (VALUE (length (STRING (x))));
}
SCM
substring (SCM x) ///((arity . n))
{