Functional-style Programming in C++14