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

Mind map

Modules Chapter seven

DIAZ PARRA BRAYAN STIVEN Spanish

Modules Chapter seven

Map content

Modules Chapter seven

  1. 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)
      • 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).
    • If generic can be applied in several programns
  2. 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.

Images and files in the map

  • Modules Chapter seven
  • Modules Chapter seven
  • Modules Chapter seven

Information

Description
Mind Map on Modules Chapter seven, created by DIAZ PARRA BRAYAN STIVEN on 18/03/2019.
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?