I want to get two lists within a compiled function, where r is an integer:

Insert[
  DeleteCases[
   Flatten[
    Table[{i, j}, {i, 0, r - 1}, {j, i, r - 1}], 1],{0, 0}], {0, r}, r];

Flatten[Table[{i, j}, {i, r - 1}, {j, 0, i - 1}], 1];


But Flatten and Compile don't seem to work very well together:

Compile[{{r, _Integer}},
    Module[{list, i = 0, j},
        list = Table[{i, j}, {i, 0, r - 1}, {j, i, r - 1}];
        Flatten[list, 1];
    ]
]


This yields Compile::cplist: list should be a tensor of type Integer, Real, or Complex; evaluation will use the uncompiled function.. It works fine without the Flatten though.


Question: Show UILabel with complete text or hide it
Answer: call the sizeToFit function on the UILabel. If it's size is longer that the maximum, hide it...