map(function,sequence[,sequence,...])->list
Returnalistoftheresultsofapplyingthefunctiontotheitemsof
theargumentsequence(s).Ifmorethanonesequenceisgiven,the
functioniscalledwithanargumentlistconsistingofthecorresponding
itemofeachsequence,substitutingNoneformissingvalueswhennotall
sequenceshavethesamelength.IfthefunctionisNone,returnalistof
theitemsofthesequence(oralistoftuplesifmorethanonesequence).
reduce(...)
reduce(function,sequence[,initial])->value
Applyafunctionoftwoargumentscumulativelytotheitemsofasequence,
fromlefttoright,soastoreducethesequencetoasinglevalue.
Forexample,reduce(lambdax,y:x+y,[1,2,3,4,5])calculates
((((1+2)+3)+4)+5).Ifinitialispresent,itisplacedbeforetheitems
ofthesequenceinthecalculation,andservesasadefaultwhenthe
sequenceisempty.