codesnippets:bindingandpatternmatching
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| codesnippets:bindingandpatternmatching [2021/04/14 11:10] – [Algebraic data types] f2b216 | codesnippets:bindingandpatternmatching [2025/10/08 00:48] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Binding ====== | + | ====== Binding |
| - | ~~DISCUSSION~~ | + | |
| A binding binds a name or even several names with a function definition. | A binding binds a name or even several names with a function definition. | ||
| Line 151: | Line 150: | ||
| MyVariantB n = MyVariantB 123 | MyVariantB n = MyVariantB 123 | ||
| - | MyVariantC = MyVariantC | + | MyVariantC = MyVariantC |
| </ | </ | ||
| * with compiler warning, which we ignore for pedagogical reasons | * with compiler warning, which we ignore for pedagogical reasons | ||
| Line 160: | Line 159: | ||
| 123 | 123 | ||
| </ | </ | ||
| - | * NOTE: I may look like: It does' | + | * NOTE: I may look like: It does' |
| + | |||
| + | |||
| + | ===== ✎ ===== | ||
| + | ~~DISCUSSION~~ | ||
codesnippets/bindingandpatternmatching.1618391437.txt.gz · Last modified: (external edit)
