polserver/testsuite/escript/array/array21.src
Kevin Eady 21fc580e66
Add filter method to escript arrays (#667)
* POC of calling user functions from core

* rename to BContinuation

* fix annotation warnings

* fix annotation warnings 2

* some cleanup, comments

* add more params to filter

* add more tests

* fix stack issues, wip determine what to do with printStack helper testing function

* print stack only for debug; increase OTContinuation to 100

* docs

* remove debugging leftovers
2024-07-28 22:51:04 +02:00

5 lines
120 B
Text

print( array{ 1, 2, 3, 4, 5 }.filter( @IsEven ) );
function IsEven( number )
return ( number % 2 ) == 0;
endfunction