Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

max_by/min_by specification disagrees with the examples #81

Open
sliiser opened this issue Jan 11, 2021 · 0 comments
Open

max_by/min_by specification disagrees with the examples #81

sliiser opened this issue Jan 11, 2021 · 0 comments

Comments

@sliiser
Copy link

sliiser commented Jan 11, 2021

The max_by and min_by specification declares that the 2nd argument is an expression that returns either a number or a string.

expression->number|expression->string

However, they both have an example that specifically contradicts this showing that strings are not allowed. Which is it?

Expression Result
max_by(people, &age_str) <error: invalid-type>
min_by(people, &age_str) error: invalid-type
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

No branches or pull requests

1 participant