# 9.39:  Convert a function to lambda.  The following function takes one argument and returns the
# value doubled.  Convert to lambda and use in the map() function.

# def doubleit(arg):
#     return arg * 2

seq = [1, 2, 3, 4]

seq2 = map(lambda arg:  arg * 2, seq)

print(list(seq2))           # [2, 4, 6, 8]

