Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #lang racket
- (require racket/match)
- (define (captcha sum items)
- (match (first items)
- [(second items) (captcha (+ sum (first items)) (list-tail items 1))]
- [_ (captcha sum (list-tail items 1))]
- )
- )
- (captcha 0 (string->list "1122"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement