public static < T extends SyntacticItem > java . util . function . Function < Identifier , SyntacticItem > bindingFunction ( Tuple < Template . Variable > variables , Tuple < T > arguments ) { // return ( Identifier var ) -> { for ( int i = 0 ; i != variables . size ( ) ; ++ i ) { if ( var . equals ( variables . get ( i ) . getName ( ) ) ) { return arguments . get ( i ) ; } } return null ; } ; }
Create a simple binding function from two tuples representing the key set and value set respectively .