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
gametitle=Shin Megami Tensei: Persona 3 FES (SLUS-21621) | |
//16:9 by CeruleansBlue | |
patch=0,EE,007cad1c,word,3fe38e38 | |
//partial HUD fix | |
patch=0,EE,00106e30,word,3c043f40 | |
patch=0,EE,00106e38,word,00701821 | |
patch=0,EE,00106e3c,word,24632bac | |
patch=0,EE,00106e44,word,00000000 |
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
class LambdaExtensions | |
{ | |
public static function groupBy<A,B,C>(iter:Iterable<A>, keyFunction:A->B, elementFunction:A->C):Iterable<Grouping<B,C>> | |
{ | |
var groupings:Array<Grouping<B,C>> = []; | |
for (item in iter) | |
{ | |
var keyValue = keyFunction(item); | |
// A better groupBy implentation would use a O(1) lookup! Using find for simplicity only. |
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
class LambdaExtensions | |
{ | |
public static function single<A>(iter:Iterable<A>, ?predicate:A->Bool):A | |
{ | |
var found:A = null; | |
for (el in iter) | |
{ | |
if (predicate == null || predicate(el)) | |
{ |