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

IList API #102

Open
3 tasks
cranst0n opened this issue Jan 27, 2022 · 0 comments
Open
3 tasks

IList API #102

cranst0n opened this issue Jan 27, 2022 · 0 comments

Comments

@cranst0n
Copy link
Contributor

It would be nice to add a few more convenience functions to IList. This issue is kind of a running log of what I've come up against. I'm happy to work on these in the near future.

  • int count(bool Function(A a)) // returns a count of elements that pass the given predicate
  • Option lift(int ix) // returns the element at the given index (if the index exists)
  • List padTo(int len, elem: A) // pad the list (if necessary) to the given length filling in the given element
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