Library for higher-order manipulation of collections