core-codegen/src/main/java/io/activej/codegen/expression/Expressions.java
/**
	 * Returns an expression that represents new local variables with some action applied to them
	 *
	 * @param expressions list of new local variables
	 * @param fn          function applied to a list of new local variables
	 * @return an expression that represents new local variables with some action applied to them
	 */
Returns an expression that represents new local variables with some action applied to them
@param expressions list of new local variables
@param fn          function applied to a list of new local variables
@return an expression that represents new local variables with some action applied to them
Returns an expression that represents new local variables with some action applied to them @param expressions list of new local variables @param fn function applied to a list of new local variables @return an expression that represents new local variables with some action applied to them
public static Expression let(List<Expression> expressions, Function<List<Variable>, Expression> fn) {
		List<Variable> variables = expressions.stream().map(ExpressionLet::new).collect(toList());
		List<Expression> sequence = new ArrayList<>(expressions.size() + 1);
		sequence.addAll(variables);
		sequence.add(fn.apply(variables));
		return sequence(sequence);
	}
public static Expression let ( List < Expression > expressions , Function < List < Variable > , Expression > fn ) { List < Variable > variables = expressions . stream ( ) . map ( ExpressionLet :: new ) . collect ( toList ( ) ) ; List < Expression > sequence = new ArrayList < > ( expressions . size ( ) + 1 ) ; sequence . addAll ( variables ) ; sequence . add ( fn . apply ( variables ) ) ; return sequence ( sequence ) ; }
Returns an expression that represents new local variables with some action applied to them
 @param expressions list of new local variables
 @param fn          function applied to a list of new local variables
 @return an expression that represents new local variables with some action applied to them
Returns an expression that represents new local variables with some action applied to them @param expressions list of new local variables @param fn function applied to a list of new local variables @return an expression that represents new local variables with some action applied to them