-
Notifications
You must be signed in to change notification settings - Fork 3
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
Collections #56
Collections #56
Conversation
- Moved functional table/array methods into a new class - Support multiple types for sum, difference, product, and quotient
- Fixed userdata return values instead of Vectors - Added the functional methods map, each, flatMap, and filter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks great, but could you add the new methods to the wiki
directory in the root of the repository
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, need to pad a new release
misclick sorry |
I'll do the wiki part soon™ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, not approving — map
and friends don't have lang entries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alright did a real review this time
common/src/main/java/com/thekillerbunny/goofyplugin/lua/CollectionAPI.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/thekillerbunny/goofyplugin/mixin/FiguraAPIManagerMixin.java
Show resolved
Hide resolved
alright we've got the shit now we need to get it in, running tests now |
tests passed, let's merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alright now tests run
letting Bunny make sure this actually looks good
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested. It works well and all. Approved
Adds the Collections API which is designed to offload bulk table operations to Java as an optimization.
I've tested all methods for functionality, but some might not handle certain cases. This PR is to allow maintainers to give feedback on the code.
Credit to @TheBunnyMan123 for the initial implementation of the API.