enumGenre{casefictioncasescificasenonFictioncasehistorycasesciencecasemedicalcaseother(name:String)//Associated valuevarisSciencey:Bool{switchself{case.scifi,.science,.medical:returntruedefault:returnfalse}}}//The code above lets us do this:letisSciencey=someGenre.isSciencey//Instead of this:letisSciencey=someGenre==.scifi||someGenre==.science||someGenre==.medical