I have a java type code like :
if ( !a && !b ) func(list)
else if (!a) func(list,b)
else if (!b) func(a,list)
else func(a,list,b)
I have all the implementations of the function 'func'. Is there a proper way to write this in scala or is this good enough?
Aucun commentaire:
Enregistrer un commentaire