GoConqr has a new look! Let us know what you think.

Mind map

Chapter 7 - Modules

Jesús Henríquez Spanish

Map content

Chapter 7 - Modules

  1. 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>, ...)'
  2. 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
  3. Data.Char

    • Exports functions that deal with characters such as
      • isControl
      • isSpace
      • isLower
      • isUpper
      • isAlphaNum
  4. Making our own modules

    • The .hs file must comply with this structure
      • module <ModuleName> (<functioName>, ...) where <structureFunction>
  5. 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
  6. Data.Set

    • Offers operations with mathematical sets
      • The sets are a type of data mix between the list and the dictionaries

Information

Description
Mind Map on Chapter 7 - Modules, created by Jesús Henríquez on 17/09/2018.
Views
0
Rating

More on Haskell Modules and Libraries

Feedback

What is it about?

What do you think of the new look?

How do you like it?