Change the functional turnHairRed() into only a single line by recoding the utility functions as lambda functions.

What will be an ideal response?

```
def turnHairRed(pic):
map(lambda a: setRed(a,getRed(a)*2) ,filter(lambda a:
distance(getColor(a),makeColor(42,25,15))<50.0 ,getPixels(pic)))
```

Computer Science & Information Technology

You might also like to view...

An exact copy of all the files stored on a drive is a(n) ____.

A. ghost B. system image C. image D. exact image

Computer Science & Information Technology

An applet using a Swing GUI is extended from this class.

A) JFrame B) JLabel C) JSwing D) JApplet

Computer Science & Information Technology