¡GoConqr estrena diseño! Cuéntanos qué te parece.

Mapa mental

Modules

HERRERA BOHORQUEZ JAVIER FELIPE Español

Contenido del mapa

Modules

  1. collection of

    • types
    • related functions
    • typeclasses
  2. A program in haskell is based in a collection of modules

    • use functions defined in these to perform something
      • Functions can be used several times
  3. Haskell Standard library split in 4 modules

    • Data.List
      • Provides useful functions for editing lists
        • Intercalate
        • Transpose
        • Concat
        • intersperse
    • Data.Char
      • Exports functions that deal with
        • Islower
        • IsDigit
        • IsMark
        • IsNumber
    • Data.Map
      • lists that are used to store key-value pairs where ordering doesn't matter
        • FromList
        • Empty
    • Data.Set
      • They have to be called using the import command before defining the functions
        • all functions that have in a module are available when we imported them
      • Offers mathematical sets where all its elements are unique
        • FromList
        • intersection
        • difference
  4. it's good practice to take functions and types that work towards a similar purpose and put them in a module

    • allow make more easily reuse those functions in other programs by just importing your module

Información

Descripción
Mapa Mental sobre Modules, creado por HERRERA BOHORQUEZ JAVIER FELIPE el 08/10/2020.
Visitas
0
Valoración

Más sobre Haskell Modules and Libraries

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?