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