2 ms·The generics in Scala should be able to catch the cases you mentioned. Definitely worth checking out.by muyyatin 15y agoThe generics in Scala should be able to catch the cases you mentioned. Definitely worth checking out.