How to unpack a Function by example