-
-
Save dmacvicar/8995c2131c5d3e49c629 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example | |
import scala.annotation.switch | |
object Main { | |
def main(args:Array[String]) { | |
val i = 10 | |
(i : @switch) match { | |
case 0 |8 |16 |24 |32 |40 |48 |56 | | |
64 |72 |80 |88 |96 |104|112|120| | |
128|136|144|152|160|168|176|184| | |
192|200|208|216|224|232|240|248| | |
320|328 => { | |
} | |
case 1 |9 |17 |25 |33 |41 |49 |57 | | |
65 |73 |81 |89 |97 |105|113|121| | |
129|137|145|153|161|169|177|185| | |
193|201|209|217|225|233|241|249| | |
321|329 => { | |
} | |
case 2 |10 |18 |26 |34 |42 |50 |58 | | |
66 |74 |82 |90 |98 |106|114|122| | |
130|138|146|154|162|170|178|186| | |
194|202|210|218|226|234|242|250 | |
=> { | |
} | |
case 3 |11 |19 |27 |35 |43 |51 |59 | | |
67 |75 |83 |91 |99 |107|115|123| | |
131|139|147|155|163|171|179|187| | |
195|203|211|219|227|235|243 => { | |
} | |
case 323|331 => { | |
} | |
case 4 |12 |20 |28 |36 |44 |52 |60 | | |
68 |76 |84 |92 |100|108|116|124| | |
132|140|148|156|164|172|180|188| | |
196|204|212|220|228|236|244|252| | |
324|332 => { | |
} | |
case 5 |13 |21 |29 |37 |45 |53 |61 | | |
69 |77 |85 |93 |101|109|117|125| | |
133|141|149|157|165|173|181|189| | |
197|205|213|221|229|237|245|253 => { | |
} | |
case 324|333 => { | |
} | |
case 6 |14 |22 |30 |38 |46 |54 |62 | | |
70 |78 |86 |94 |102|110|118|126| | |
134|142|150|158|166|174|182|190| | |
198|206|214|222|230|238|246|254| | |
326|334 => { | |
} | |
case 7 |15 |23 |31 |39 |47 |55 |63 | | |
71 |79 |87 |95 |103|111|119|127| | |
135|143|151|159|167|175|183|191| | |
199|207|215|223|231|239|247|255 | |
=> { | |
} | |
case 327|335 => { | |
} | |
case 251 => { | |
} | |
case 256|264|272|280|288|296|304|312 | |
=> { | |
} | |
case 257 => { | |
} | |
case 258|266|274|282|290|298|306|314 | |
=> { | |
} | |
case 265|273|281|289|297|305|313 | |
=> { | |
} | |
case 259|267|275|283|291|299|307|315 | |
=> { | |
} | |
case 260|268|276|284|292|300|308|316 | |
=> { | |
} | |
case 261|269|277|285|293|301|309|317 | |
=> { | |
} | |
case 262|270|278|286|294|302|310|318 | |
=> { | |
} | |
case 263|271|279|287|295|303|311|319 | |
=> { | |
} | |
case 336|338 => { | |
} | |
case 337|339 => { | |
} | |
case 340 => { | |
} | |
case _ => {} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment