Evaluating composed functions at a given value