Skip to content

Provide promise?.#6

Open
NoahStoryM wants to merge 1 commit intoracket:masterfrom
NoahStoryM:promise
Open

Provide promise?.#6
NoahStoryM wants to merge 1 commit intoracket:masterfrom
NoahStoryM:promise

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