swift has curried functions