# Arraylist full of functions?

**URL:** <https://discourse.processing.org/t/arraylist-full-of-functions/10786>\
**Category:** Coding Questions\
**Created:** [April 30, 2019, 4:14pm UTC](https://discourse.processing.org/t/arraylist-full-of-functions/10786 "2019-04-30T16:14:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [April 30, 2019, 6:31pm UTC](https://discourse.processing.org/t/arraylist-full-of-functions/10786/2 "2019-04-30T18:31:31Z")

</div>

> [@Function as argument of another function](https://discourse.processing.org/t/function-as-argument-of-another-function/6383/4):
>
> I’ve wet my feet a little on the Java package [java.util.function](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/function/package-summary.html) by instantiating a [Predicate](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/function/Predicate.html) and passing it as an argument at these 2 old sketch links below: crazy_face[Forum.Processing.org/two/discussion/21761/querying-arraylist#Item\_2](http://Forum.Processing.org/two/discussion/21761/querying-arraylist#Item_2)[Forum.Processing.org/two/discussion/22823/how-to-implement-this-method#Item\_2](http://Forum.Processing.org/two/discussion/22823/how-to-implement-this-method#Item_2) Of course it’s not even close to an actual lambda -\> syntax. But it’s as far as we can go under the PDE. roll_eyes

---

_[View the full topic](https://discourse.processing.org/t/arraylist-full-of-functions/10786)._
