Skip to content

Conversation

@NoahStoryM
Copy link

With promise?, we can define more precise predicates for some data structures:

(define (stream? v)
  (or (null? v)
      (and (pair? v)
           (promise? (cdr v)))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant