Mind map
Modules Chapter seven

Map content
Modules Chapter seven
Collection of related functions, types, and type classes
- import <module name>
- Data.Char
- It exports functions that deal with characters
- Data.Map
- Association lists (also called dictionaries) are lists that are used to store key-value pairs where ordering doesn't matter
- Data.Set
- The Data.Set module offers us, well, sets. Sets are kind of like a cross between lists and maps. All the elements in a set are unique.
- Data.List
- The Data.List module is all about lists
- The function nub is imported from Data.List
- It's equivalent to code: \xs-> length (nub xs)
- The function nub is imported from Data.List
- The Data.List module is all about lists
- Prelude is a module imported by default, Prelude>
- Example of several modules implemented in GHCI session
- To specified the import functions there are key words that can filter the ones we need: hiding, qualified, (put the specific functions).
- Data.Char
- If generic can be applied in several programns
- import <module name>
We say that a module exports functions. What that means is that when I import a module, I can use the functions that it exports. It can define functions that its functions call internally, but we can only see and use the ones that it exports.
Images and files in the map
Information
- Description
- Mind Map on Modules Chapter seven, created by DIAZ PARRA BRAYAN STIVEN on 18/03/2019.
- Created by
- DIAZ PARRA BRAYAN STIVEN
- Views
- 0
- Rating
More on Haskell Modules and Libraries
