On Thu, 17 Mar 2011 08:31:28 -0700, Patrick wrote:
> Steven,
>
> Thanks for the info of itertools. It is a great start for me. Overall, I
> agree with you that it is really the user data needs to be sorted out.
> However, novice users may need help on certain patterns such as
> "a=[1,[2,3],4], b=
Steven,
Thanks for the info of itertools. It is a great start for me. Overall,
I agree with you that it is really the user data needs to be sorted
out. However, novice users may need help on certain patterns such as
"a=[1,[2,3],4], b=[5,[6,7,8],9,10]". We could just draw our line
saying that simil
on process.
> and "a=[1,[2,3],4], b=[5,[6,7,8],9,10]". That means if the nesting
> structure is the same, enhanced map function will automatically extend
> the shorter list using the last element.
It isn't clear what you want here. Are you expecting this enhanced map to
rec
nesting only.
I am looking for examples that could hand input of "a = [2,3], b=4"
and "a=[1,[2,3],4], b=[5,[6,7,8],9,10]". That means if the nesting
structure is the same, enhanced map function will automatically extend
the shorter list using the last element. Or if the input