-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
318ab78
commit f8f31fd
Showing
4 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[#term-product] | ||
|
||
// tag::EN[] | ||
==== Product | ||
|
||
Product data is data whose values have several, fixed attributes. | ||
Also known as *records*, *structs*, *tuples* or *and data*. | ||
|
||
Example: | ||
|
||
An *address* has the following attributes: | ||
|
||
- name, and | ||
- street, and | ||
- street number, and | ||
- city, and | ||
- zip code | ||
|
||
// end::EN[] | ||
|
||
// tag::DE[] | ||
==== Produkt | ||
|
||
Produktdaten sind solche, deren Werte mehrere, feststehende Attribute | ||
haben. Auch als *Records*, *Structs*, *Tupel* oder *Und-Daten* bezeichnet. | ||
|
||
Beispiel: | ||
|
||
Eine *Adresse* hat die folgenden Attribute: | ||
|
||
- Name und | ||
- Straße und | ||
- Hausnummer und | ||
- Stadt und | ||
- Postleitzahl | ||
|
||
// end::DE[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[#term-sum] | ||
|
||
// tag::EN[] | ||
==== Sum | ||
|
||
Sum data is data that can be one of several distinct, but fixed types. | ||
Also known as *discriminated union*, *dijoint union*, | ||
*mixed data* or *or data*. | ||
|
||
Example: | ||
|
||
A *geometric shape* is one of the following: | ||
|
||
- a square, or | ||
- a circle, or | ||
- a triangle | ||
|
||
// end::EN[] | ||
|
||
// tag::DE[] | ||
==== Summe | ||
|
||
Summendaten sind solche, bei denen ein Wert zu einem von mehreren | ||
verschiedenen aber festehenden Typen gehört. Auch als *direkte Summe* | ||
oder *gemischte Daten* oder *Oder_Daten* bezeichnet. | ||
|
||
Beispiel: | ||
|
||
Eine *geometrische Figur* ist eine der folgenden: | ||
|
||
- ein Quadrat oder | ||
- ein Kreis oder | ||
- ein Dreieck | ||
// end::DE[] |