Place n indistinguishable items into k distinguishable boxes

Mark Dickinson dickinsm at gmail.com
Thu Feb 28 05:41:22 CET 2008


On Feb 27, 11:38 pm, Mark Dickinson <dicki... at gmail.com> wrote:
>             yield map(len, (''.join(s)).split('|'))

That line should have been just:

            yield map(len, s.split('|'))

of course.

Mark



More information about the Python-list mailing list