core-codegen/src/main/java/io/activej/codegen/expression/Expressions.java
/**
	 * Returns a sequence of operations which will be processed one after the other.
	 * Operations should be added to a list that is mapped by the given function. The last
	 * operation should be returned as a result of a given function
	 *
	 * @param fn function that transforms a list of operations to an expression
	 * @return new instance of the ExpressionSequence
	 */
Returns a sequence of operations which will be processed one after the other.
Operations should be added to a list that is mapped by the given function. The last
operation should be returned as a result of a given function

@param fn function that transforms a list of operations to an expression
@return new instance of the ExpressionSequence
Returns a sequence of operations which will be processed one after the other . Operations should be added to a list that is mapped by the given function . The last operation should be returned as a result of a given function @param fn function that transforms a list of operations to an expression @return new instance of the ExpressionSequence
public static Expression sequence(Function<List<Expression>, Expression> fn) {
		List<Expression> seq = new ArrayList<>();
		Expression result = fn.apply(seq);
		seq.add(result);
		return new ExpressionSequence(seq);
	}
public static Expression sequence ( Function < List < Expression > , Expression > fn ) { List < Expression > seq = new ArrayList < > ( ) ; Expression result = fn . apply ( seq ) ; seq . add ( result ) ; return new ExpressionSequence ( seq ) ; }
Returns a sequence of operations which will be processed one after the other.
Returns a sequence of operations which will be processed one after the other .