Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
pp:l04xx [2020/03/20 21:35] pdmatei |
pp:l04xx [2020/04/07 15:11] (current) pdmatei |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======= Programming with ADTs ======= | + | ======= 6. Programming with ADTs ======= |
1. A **dictionary** is a collection of key-value pairs, which we can represent in Haskell as a list of pairs ''(String,Integer)'' where ''String'' is the key type and ''Integer'' is the value type: | 1. A **dictionary** is a collection of key-value pairs, which we can represent in Haskell as a list of pairs ''(String,Integer)'' where ''String'' is the key type and ''Integer'' is the value type: |