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

Mindmap

Modules

HERRERA BOHORQUEZ JAVIER FELIPE Spanisch

Inhalt der Mindmap

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

Informationen

Beschreibung
Mindmap am Modules, erstellt von HERRERA BOHORQUEZ JAVIER FELIPE am 08/10/2020.
Aufrufe
0
Bewertung

Mehr zu Haskell Modules and Libraries

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck