Created
March 8, 2019 16:10
-
-
Save haruo-wakakusa/28fc10d298d40e76a564955404d68399 to your computer and use it in GitHub Desktop.
DE DE MOUSEの楽曲「flesh! + blood」から想起したRacketの関数
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
#lang racket | |
(define *blood* | |
'(abraham issac jacob judah perez hezron ram ammin\'adab | |
nahshon salmon bo\'az obed jesse david-the-king | |
solomon rehobo\'am abi\'jah asa jehosh\'aphat | |
joram uzzi\'ah jotham ahaz hezeki\'ah manas\'seh | |
amos josi\'ah jechoni\'ah she-al\'ti-el | |
zerub\'babel abi\'ud eli\'akim azor zadok achim | |
eli\'ud elea\'zar matthan jacob joseph jesus)) | |
(define flesh!+blood | |
(let ((b *blood*)) | |
(lambda () | |
(if (null? b) | |
'() | |
(let ((res (car b))) | |
(set! b (cdr b)) | |
res))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment