Skip to content

Instantly share code, notes, and snippets.

@brianyu0717
Created October 24, 2017 10:13
Show Gist options
  • Select an option

  • Save brianyu0717/83b2890bfb57ff648563e7b67c4f0a14 to your computer and use it in GitHub Desktop.

Select an option

Save brianyu0717/83b2890bfb57ff648563e7b67c4f0a14 to your computer and use it in GitHub Desktop.
final double[] values = //...
List<Double> doubles = Arrays.asList(ArrayUtils.toObject(values));
return doubles.stream().map( d -> (Function<InputData, Double>) (v) -> d).collect(Collectors.toList());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment