Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (define (foldl1 f xs)
- (foldl f (first xs) (rest xs)))
- (first '(a b c d e . f))
- ;;==>
- ;;first: contract violation
- ;; expected: (and/c list? (not/c empty?))
- ;; given: '(a b c d e . f)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement