# Using lambda form with hype processing

**URL:** <https://discourse.processing.org/t/using-lambda-form-with-hype-processing/13687>\
**Category:** Gallery\
**Created:** [August 29, 2019, 2:04pm UTC](https://discourse.processing.org/t/using-lambda-form-with-hype-processing/13687 "2019-08-29T14:04:18Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [August 30, 2019, 3:28am UTC](https://discourse.processing.org/t/using-lambda-form-with-hype-processing/13687/3 "2019-08-30T03:28:54Z")

</div>

the intro you did

> [@Arraylist full of functions?](https://discourse.processing.org/t/arraylist-full-of-functions/10786/6):
>
> [Sam Pottinger](https://github.com/sampottinger/processing) has done an amazing job in updating processing, not only to update to OpenJDK11, but also to support java 8 syntax in the processing ide. I’m sure he would welcome your support. Here is an example using lambda syntax in the processing ide. interface MyFunction { float calculate(float x); } float[] values = new float[2]; void setup() { // lambda expression to define the calculate method MyFunction doubling = (float x)-\>x \* 2; values[0] = doubling.calculate(5); …

was good for understand the basics

* * *

here testing the second example, get

```auto

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/C:/Users/ZEN%202/Documents/processing-3.5.3_SAM/core/library/gluegen-rt.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)
WARNING: Please consider reporting this to the maintainers of com.jogamp.common.os.NativeLibrary$3
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
The file "gradient.jpg" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.

```

but it RUNs using WIN 10  
/ Processing ( Sam Pottinger 0270 ) / HYPE ( 2.1.0 )  
can we have the missing picture pls?

---

_[View the full topic](https://discourse.processing.org/t/using-lambda-form-with-hype-processing/13687)._
