Mapa mental
Modules
Conteúdo do mapa
Modules
Loading modules
- The syntax for importing modules in a Haskell script is import <module name>
- import Data.List
- Import all modules from data.list
- import Data.List (nub, sort)
- Import only necessary functions from Data.List
- import Data.List
- The syntax for importing modules in a Haskell script is import <module name>
Data.List
- offers multiple functions to deal with lists, among them are
- - intersperse - intercalate - transpose - concat - etc
- offers multiple functions to deal with lists, among them are
Making our own modules
- example, we have our module geometry.hs, and create their functions
- module Geometry ( sphereVolume , sphereArea , cubeVolume , cubeArea , cuboidArea , cuboidVolume ) where
- we import with next sintax: import Geometry
- module Geometry ( sphereVolume , sphereArea , cubeVolume , cubeArea , cuboidArea , cuboidVolume ) where
- example, we have our module geometry.hs, and create their functions
Data.Char
- offers multiple functions to deal with characters, among them are
- - isControl -isSpace -isLower -isUpper -...
- generally these functions return boolean values
- - isControl -isSpace -isLower -isUpper -...
- offers multiple functions to deal with characters, among them are
Data.set
- this library is used for math operations and maps, these are some functions
- intersection
- This function is used to compare two functions and see the similar data between them
- difference
- this is used to see the characters that is in a function but not in the other
- empty
- this is used to see if a function is empty and not, it returns a boolen
- intersection
- this library is used for math operations and maps, these are some functions
Informações
- Descrição
- Mapa Mental sobre Modules, criado por YEFFERSON FABIAN LINARES OSPINA em 12-10-2021.
- Criado por
- YEFFERSON FABIAN LINARES OSPINA
- Visualizações
- 1
- Avaliação
Mais sobre Haskell Modules and Libraries