;;; -*-scheme-*-
;;; Mes --- Maxwell Equations of Software
-;;; Copyright © 2016,2017 Jan Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2016,2017,2018 Jan Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of Mes.
;;;
3
(string-index "foo:bar" #\:))
+(pass-if-equal "string-fold"
+ "oof"
+ (list->string (string-fold cons '() "foo")))
+
+(pass-if-equal "string-fold-right"
+ "f-o-o-:"
+ (list->string (string-fold-right (lambda (e p) (cons e (cons #\- p))) '(#\:) "foo")))
+
(result 'report)