early exit from Nashorn script?

Rod Widdowson rdw at steadingsoftware.com
Tue Jan 28 06:09:16 EST 2020


> I think what might work is inlining a function declaration that uses return statements inside itself, and then making the script
itself end
> with my_fn(input, custom)

This is the solution I have seen used most often.





More information about the users mailing list