Re: Operators as functions

2004-12-21 Thread Anders Andersson
Peter Hansen wrote: Anders Andersson wrote: I want to concatinate (I apologize for bad English, but it is not my native language) a list of strings to a string. I could use (I think): s = "" map(lambda x: s.append(x), theList) But I want to do something like (I think that the cod

Re: Operators as functions

2004-12-21 Thread Anders Andersson
Steve Holden wrote: Anders Andersson wrote: Hello I want to concatinate (I apologize for bad English, but it is not my native language) a list of strings to a string. I could use (I think): s = "" map(lambda x: s.append(x), theList) But I want to do something like (I think that the cod

Operators as functions

2004-12-20 Thread Anders Andersson
map, filter and listcomprehension etc. I hope it is possible in Python too. In Haskell I would write: foldr (++) [] Thank you for answering! -- Anders Andersson -- http://mail.python.org/mailman/listinfo/python-list