GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

Modules Chapter seven

DIAZ PARRA BRAYAN STIVEN Spanisch

Modules Chapter seven

Inhalt der Mindmap

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.

Bilder und Dateien der Mindmap

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

Informationen

Beschreibung
Mindmap am Modules Chapter seven, erstellt von DIAZ PARRA BRAYAN STIVEN am 18/03/2019.
Aufrufe
0
Bewertung

Mehr zu Haskell Modules and Libraries

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck