Racket: Documented signatures for `bound-id-set-map` and `bound-id-set-for-each` incorrect

Created on 30 Oct 2019  路  3Comments  路  Source: racket/racket

The documented signatures for bound-id-set-map and bound-id-set-for-each seem wrong:

@defproc[(bound-id-set-map [s bound-id-set?]) list?]
@defproc[(bound-id-set-for-each [s bound-id-set?]) void?]

The documentation suggests they're comparable to free-id-set-map and free-id-set-for-each, which each take a function to call on each element, but that argument is missing here.

Calling procedure-arity confirms that these procedures have arities of 2, so I think this is simply a documentation issue.

Most helpful comment

Thanks for suggesting to make a PR. This is my first PR for Racket, and it was a good excuse to speed with the build instructions and contributing guidelines. :)

All 3 comments

I think it's an error in the docs, the unary version makes no sense.

Do you want to send a PR? If not, we can fix it instead.

Thanks for suggesting to make a PR. This is my first PR for Racket, and it was a good excuse to speed with the build instructions and contributing guidelines. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sorawee picture sorawee  路  7Comments

schackbrian2012 picture schackbrian2012  路  6Comments

bennn picture bennn  路  3Comments

MichaelMMacLeod picture MichaelMMacLeod  路  3Comments

sorawee picture sorawee  路  7Comments