Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. (define (foldl1 f xs)
  2. (foldl f (first xs) (rest xs)))
  3.  
  4. (first '(a b c d e . f))
  5. ;;==>
  6. ;;first: contract violation
  7. ;; expected: (and/c list? (not/c empty?))
  8. ;; given: '(a b c d e . f)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement