Movatterモバイル変換
[0]ホーム
why python annoys me
D-Mandsh8290 at rit.edu
Sat Apr 21 15:38:04 EDT 2001
On Sat, Apr 21, 2001 at 11:30:54AM -0700, James Logajan wrote:| Alex Martelli wrote:| > [...] since Python does have list comprehensions, [...]|| Not being a computer scientist, I hope you can excuse a profoundly ignorant| question, but what are (or is?) "list comprehensions"? And another questionThey are described in the Ref Man (on python.org). Someone gave apretty good explanation on this list, or ontutor at python.org. Searchthe archives if you want to find it.Basically it is a syntacical sugar for creating a list whose elementshave a certain property and originally were in an existing list.| (probably harder to answer): is there someplace on the web or in print where| I can find a good definition of "functional programming"? I'm pretty sure it| doesn't mean classical procedural notation, more like mathematical or| logical notation, but I can't be sure.It is rather similar to the notation used in defining functions in myDiscrete Math 2 course. I would say that Lisp and Scheme are the mostwidely known Functional Programming languages. I think that the MLfamily and maybe Haskell have something of FP in them, but I don'treally know much about those languages (just what I hear on thisgroup).HTH,-D
More information about the Python-listmailing list
[8]ページ先頭