A version of curry that uses  dispatcher.