Mindmap
Chapter 7 - Modules
Inhalt der Mindmap
Chapter 7 - Modules
Loading Modules
- Collection of
- Functions
- Types
- Classes of Types
- To load a module it is used
- From GHCI with: ': m + <module>'
- Desde un script hs: 'import <module>'
- And for specific functions 'import <module> (<function>, <function>, ...)'
- Collection of
Data.List
- Deal exclusively with lists
- Useful functions
- Interperse
- Take an element and a list puts that element between each pair of elements in the list.
- Intercalate
- Take a list and list of lists. Insert the first list among all the other list, resulting in a single list
- Transpose
- Transpose a list of lists
- Interperse
Data.Char
- Exports functions that deal with characters such as
- isControl
- isSpace
- isLower
- isUpper
- isAlphaNum
- Exports functions that deal with characters such as
Making our own modules
- The .hs file must comply with this structure
- module <ModuleName> (<functioName>, ...) where <structureFunction>
- The .hs file must comply with this structure
Data.Map
- It offers us work of associacoon lists
- are lists that are used to store key-value pairs where order does not matter
- findKey
- It offers us work of associacoon lists
Data.Set
- Offers operations with mathematical sets
- The sets are a type of data mix between the list and the dictionaries
- Offers operations with mathematical sets
Informationen
- Beschreibung
- Mindmap am Chapter 7 - Modules, erstellt von Jesús Henríquez am 17/09/2018.
- Erstellt von
- Jesús Henríquez
- Aufrufe
- 0
- Bewertung
Mehr zu Haskell Modules and Libraries