Scala Typed Patterns PRO

When dealing in Java with an object we don’t know its type we need to use a series of if-else statements and instanceof casts in order to check the exact type of our object before moving forward with casting the type of the reference we hold in order to invoke the relevant method. Scala allows […]

Skip to content Update cookies preferences