Question: I've created a method in my utils.ts to delete an element from an array.

```
public static deleteElementFromArray<T>(list: T[], element: T): T[] {
    if (!list) {
      return [];
    }
    const index = list.indexOf(element);
    if (index > -1) {
        list.splice(index, 1);
    }
    return list;
}

```

a friend of mine tell me that he uses `filter` to filter the list and exclude the element.

```
users = users.filter(u => u !== toto);

```

I wonder what you think of this and if you have a better solution

Answer: 
If you want to use a proportionally spaced font, you'll have to draw the characters at the appropriate places. Otherwise, find a monospaced font you like.
For completeness sake, I should post what I ended up doing after accepting what @AaronBratcher confirmed.

First I created 5 separate UILabels for the following elements:

```
leftTwoDigits-leftSeparator-centerTwoDigits-rightSeparator-rightTwoDigits

```

I used constrains to constrain all of their baselines, and have 0 horizontal spacing betwixt each. The separator labels were set simply to `:` and normal color. The xxxTwoDigits labels were given the string `AA`. `A` is NOT the widest character, `C is`. But `A` is near it. `C` is too wide, and `A` is wide enough. The color of these labels was set to `clear` so it doesn't actually show up.

Then 6 more UILabels are added. Again the the same baselines. The first two are constrained to the leading and trailing sides of leftTwoDigits and constrained to match in width. Repeat for the other 4 cells. Make all centered. And populate them individually with the individual digits.