3 ms·You can use branded types for the first case.by mejutoco 2y agoYou can use branded types for the first case.