is [comprehension] the right word???
Hen Hanna <henh...@gmail.com> writes:
is [comprehension] the right word???Yes, it comes from math, particularly set theory. An expression like
{ n | n:integer, n mod 2 = 0 }
is called a set comprehension, and then one there denotes the set of all even integers. Axioms saying that the above denotes a legitimate set
are called comprehension axioms. In ZFC (an axiomitization of set
theory widely used in math), there is an infinite schema of such axioms.
The Haskell language used a notation inspired by this for "list comprehensions", and Python list (and later dictionary etc.)
comprehensions were inspired by Haskell's version.
is [comprehension] the right word???
i swear i never heard the word before
getting into Python a few years ago.
Yes, it comes from math, particularly set theory. An expression like
{ n | n:integer, n mod 2 = 0 }
is called a set comprehension,
Hen Hanna <henh...@gmail.com> writes:
is [comprehension] the right word???
Yes, it comes from math, particularly set theory. An expression like
{ n | n:integer, n mod 2 = 0 }
is called a set comprehension, and then one there denotes the set of all even integers. Axioms saying that the above denotes a legitimate set
are called comprehension axioms. In ZFC (an axiomitization of set
theory widely used in math), there is an infinite schema of such axioms.
The Haskell language used a notation inspired by this for "list comprehensions", and Python list (and later dictionary etc.)
comprehensions were inspired by Haskell's version.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 14:48:40 |
Calls: | 10,389 |
Files: | 14,061 |
Messages: | 6,416,903 |