public static final < S , E > S forEach ( List < E > list , S state , Fx < S , E > functor ) { return new FunctionalList < S , E > ( list ) . forEach ( state , functor ) ; }
Applies the given functor to all elements in the input list .