concept forEach in category functional programming

appears as: forEach
Functional Programming in Java: How functional techniques improve your Java programs

This is an excerpt from Manning's book Functional Programming in Java: How functional techniques improve your Java programs.

You can choose whatever name you want for the bind method. You could call it ifSuccess or forEach. Only the type is important.

Define a forEach method that takes an Effect as its parameter and applies it to the wrapped value.