Skip to content

Instantly share code, notes, and snippets.

@greenlaw110
Created June 17, 2013 03:08
Show Gist options
  • Save greenlaw110/5794419 to your computer and use it in GitHub Desktop.
Save greenlaw110/5794419 to your computer and use it in GitHub Desktop.
Functional programming with Java-Tool
package com.greenlaw110.sample;
import com.greenlaw110.util.C;
import com.greenlaw110.util.IO;
import com.greenlaw110.util._;
import java.util.List;
public class MappingSample {
public static void main(String[] args) {
List<Integer> l = C.list(1, 2, 3);
C.lc(l).map(_.f.dbl(), IO.f.PRINTLN).walkthrough();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment