You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Product-Type: Der Zustand ergibt sich aus dem kartesischen Produkt aller Möglichkeiten jedes Feldes (*) <!-- .element: class="fragment" data-fragment-index="3" -->
160
+
161
+
(*) Algebraic Data Types <!-- .element: class="fragment" data-fragment-index="3" -->
162
+
163
+
----
164
+
165
+
### Algebraic Data Types: Sum Type
166
+
167
+
```fsharp
168
+
type Vehicle = Bike | Car | Bus
169
+
```
170
+
171
+
Alle möglichen Zustaende von `Vehicle` sind: `Bike`, `Car`, oder `Bus`.
172
+
173
+
Dies entspricht der **Summe** der Auswahlmöglichkeiten.
0 commit comments