swift functional programing library