Created
March 23, 2017 11:45
-
-
Save TurpIF/24d6b279c17e9d35db1bcf2cfcbfa69f to your computer and use it in GitHub Desktop.
Fx sample
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
allInstruments.stream() | |
.filter(missingCross) | |
.flatMap(instrument -> Stream.of(instrument.getCurrency(), instrument.getBaseCurrency())) | |
.filter(cur -> cur != refCurrency) | |
.map(cur -> Forex.create(refCurrency, cur)) | |
.filter(not(allInstruments::contains)) | |
.iterator(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment