Skip to content

Instantly share code, notes, and snippets.

@feupeu
Last active October 29, 2015 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feupeu/e7e7b2ae658ddfdbed8b to your computer and use it in GitHub Desktop.
Save feupeu/e7e7b2ae658ddfdbed8b to your computer and use it in GitHub Desktop.
(define (calendars-overlap? cal1 cal2)
(ormap
(lambda (app)
(calendars-overlap-step app (cal-part cal2 APPOINTMENTS))
)
(cal-part cal1 APPOINTMENTS)
)
)
(define (calendars-overlap-step app apps)
(if [empty? apps]
#f
(or
(appointments-overlap? app (car apps))
(calendars-overlap-step app (cdr apps))
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment