[Python-ideas] Adding a functional list type to the standard library.

Aahz aahz at pythoncraft.com
Sun Apr 5 15:57:31 CEST 2009

On Sun, Apr 05, 2009, Alexandre Vassalotti wrote:
> I would like to have your opinion whether a functional list type would
> be welcomed in the standard library. 

My head hurts.  Are you sure you didn't intend to send this four days
ago?  ;-)

>   # The constructor does a deep conversion of the list to its internal
> representation.
>   state = FunctionalList([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12],
> [13, 14, 15, None]])
>   print(goal[0])   # This would print a FunctionalList object, i.e.,
> FunctionalList([1, 2, 3, 4])

Where is ``goal`` defined?  At this point, I'm unable to make any
headway on understanding what you're trying here.
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it."  --Brian W. Kernighan

More information about the Python-ideas mailing list