Exemple #1
0
 protected static boolean isLengthOne(RAbstractIntVector length) {
   return length.getLength() == 1;
 }
Exemple #2
0
 @Specialization(guards = "isLengthOne(lengthVector)")
 protected RAbstractContainer updateLength(
     RAbstractContainer container, RAbstractIntVector lengthVector) {
   controlVisibility();
   return container.resize(lengthVector.getDataAt(0));
 }