Can someone explain the structure of reduce() in the following example:
def f2(list):
return reduce(lambda string, item: string + chr(item), list, "")
I know that f2 converts a list of int's into a string, but my problem is understanding reduce in this context. I know the basic structure of reduce is reduce(function, sequence[, initial]) but this is somehow confusing to me. Can someone explain reduce(lambda string, item: string + chr(item), list, "") and give me some similar examples ? Thanks in advance.