private Iterator < Tuple > getBinds ( Iterator < Tuple > tuples , final VarDef var ) { return IteratorUtils . filteredIterator ( tuples , tuple -> tuple . getBinding ( var ) != null ) ; }
Returns input tuples that bind the given variable .