Skip to content

Instantly share code, notes, and snippets.

@shiyuangu
Created December 17, 2013 01:43
Show Gist options
  • Select an option

  • Save shiyuangu/7998508 to your computer and use it in GitHub Desktop.

Select an option

Save shiyuangu/7998508 to your computer and use it in GitHub Desktop.
Java syntax
Function<String, Integer> lengthFunction = new Function<String, Integer>() {
public Integer apply(String string) {
return string.length();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment