is [comprehension] the right word???
Hen Hanna <[email protected]> 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 <[email protected]> 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: | 715 |
| Nodes: | 16 (3 / 13) |
| Uptime: | 158:11:07 |
| Calls: | 12,094 |
| Calls today: | 2 |
| Files: | 15,000 |
| Messages: | 6,517,755 |