Function as argument of another function

I’ve wet my feet a little on the Java package java.util.function by instantiating a [u]Predicate[/u] and passing it as an argument at these 2 old sketch links below: :crazy_face:

  1. Querying ArrayList - Processing 2.x and 3.x Forum
  2. 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:

2 Likes