We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For a functional style of programming it is very useful to have access to all the methods directly.
For example, given a table values of vec3, if one would want to sort them by length, then this:
values
vec3
table.sort(values, by(vec3.getLength))
is a lot nicer (and more performant) than this:
table.sort(values, by(function(vector) return vector:getLength() end)) -- or table.sort(values, by(vec3().getLength))
(Where by returns a comparator based on the given projection function)
by
The text was updated successfully, but these errors were encountered:
Possseidon
No branches or pull requests
For a functional style of programming it is very useful to have access to all the methods directly.
For example, given a table
values
ofvec3
, if one would want to sort them by length, then this:is a lot nicer (and more performant) than this:
(Where
by
returns a comparator based on the given projection function)The text was updated successfully, but these errors were encountered: