This file contains hidden or 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 net.exoego; | |
| import java.util.ArrayList; | |
| import java.util.Collections; | |
| import java.util.List; | |
| import net.exoego.queen.Sequence; | |
| import net.exoego.util.function.Func1; | |
| import net.exoego.util.function.Func2; | |
| import net.exoego.util.function.Funcs; |
This file contains hidden or 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
| final List<Integer> evenList = range(1, 100) | |
| .asParallel() | |
| .map((Func1) (arg) -> { | |
| System.out.print(arg + " "); | |
| return arg * 2; | |
| }).toList(); |
This file contains hidden or 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 net.exoego.doukaku; | |
| import java.util.*; | |
| public class Poker { | |
| private static enum Suit { | |
| S, H, D, C; | |
| static Suit from(final String value) { | |
| return Suit.valueOf(Suit.class, value); |
This file contains hidden or 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
| /** | |
| * @author <a href="mailto:[email protected]">MOGAMI Shu</a> | |
| */ | |
| (function(namespace){ | |
| /** @private */ | |
| var _map = {}; | |
| // assign static function to monday | |
| monday["addAll"] = addAll; |
NewerOlder