Real LINQ for Java(github.com)1 points·by nicholas22·15 ปีที่แล้ว·-1 commentsgithub.comReal LINQ for Javahttps://github.com/nicholas22/jpropel-lightPure, valid, Java:// create alphabet char[] char[] alphabet = new Character('A').to(new Character('Z')).unbox(); char[] numbers = new Character('1').to(new Character('9')).unbox();// join two arrays and put in list List<Character> allowed = alphabet.join(numbers).box().toList();// select distinct j* names, using LINQ-style statements new String[] { "james", "john", "john", "eddie" }.where(startsWith("j")).distinct();See homepage for more details.0 commentsPost comment—
// create alphabet char[] char[] alphabet = new Character('A').to(new Character('Z')).unbox(); char[] numbers = new Character('1').to(new Character('9')).unbox();
// join two arrays and put in list List<Character> allowed = alphabet.join(numbers).box().toList();
// select distinct j* names, using LINQ-style statements new String[] { "james", "john", "john", "eddie" }.where(startsWith("j")).distinct();
See homepage for more details.