WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

values as argument to function that use call-with-values #54

@jcubic

Description

@jcubic

Example code:

(define (foo vals)
  (call-with-values (lambda () vals) (lambda args (apply + args))))

(foo (values 1 2 3 4))
  • Kawa, Gamibt, and my LIPS return 10
  • Chicken, Guile returns 1

In the R7RS spec, it says that it's unspecified behavior to accept multiple values in continuations.

It may require more testing with more implementations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions