Last active
May 2, 2018 06:46
-
-
Save brv00/7db8735c8446a38c82c0a283b9c30546 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; list constructors | |
(use-module "elf/iterate.scm") | |
(define (scanL xs how so-far) | |
(foldL xs (lambda (x so-far) | |
`(,(how x (car so-far)) . ,so-far)) | |
`(,so-far))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment