O function ( O arg0 ) { execute ( arg0 ) ; return arg0 ; }
executes with the given argument , then returns the argument . import ratpack.func.action ; import java.util.list ; import java.util.arraylist ; import static org.junit.assert.assertequals ; public class example public static void main string ... args throws exception assertequals `` foo '' , run list - > list.add `` foo '' . get 0 ; private static list run action > action throws exception return action.with new arraylist ; concode_field_sep PlaceHolder placeHolder concode_field_sep Action<Object> noop concode_elem_sep Action<T> ignoreArg concode_elem_sep T uncheckedWith concode_elem_sep O uncheckedWith concode_elem_sep Consumer<T> toConsumer concode_elem_sep Action<O> prepend concode_elem_sep Action<T> from concode_elem_sep Action<T> join concode_elem_sep void execute concode_elem_sep Action<? super T> noopIfNull concode_elem_sep Action<Throwable> throwException concode_elem_sep Action<T> throwException concode_elem_sep Block curry concode_elem_sep Action<O> append