Mapa mental
Modules Chapter seven

Contenido del mapa
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.
Imágenes y archivos del mapa
Información
- Descripción
- Mapa Mental sobre Modules Chapter seven, creado por DIAZ PARRA BRAYAN STIVEN el 18/03/2019.
- Creado por
- DIAZ PARRA BRAYAN STIVEN
- Visitas
- 0
- Valoración
Más sobre Haskell Modules and Libraries
