Add method Primitive.permute.