Tuple manipulation library