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

Add Javascript-like array methods to TArrayUtils #43

Open
delphidabbler opened this issue Jan 10, 2025 · 2 comments
Open

Add Javascript-like array methods to TArrayUtils #43

delphidabbler opened this issue Jan 10, 2025 · 2 comments
Assignees
Labels
considering Issue is currently under consideration enhancement New feature or request

Comments

@delphidabbler
Copy link
Owner

In a comment on issue #8 it was suggested that it maybe a good idea to add some JavaScript-style array methods to TArrayUtils, specifically forEach(), some(), all()every() & map(). To those we can add reduce() (& reduceRight()?).

In this comment on issue #40 implementations were proposed for TArrayUtils' Some<T>() and Every<T>().

@delphidabbler
Copy link
Owner Author

The JavaScript array methods are documented here.

@delphidabbler
Copy link
Owner Author

I've been adding lots of methods to TArrayUtils on my local machine. So many that the thing is getting a bit too big for a code snippet.

So I'm thinking it would probably be better to leave the TArrayUtils snippet as-is and to move the expanded code into a new repo within the DelphiDabbler Code Library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
considering Issue is currently under consideration enhancement New feature or request
Projects
Status: Considering
Development

No branches or pull requests

1 participant