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

Mindmap

Modules

NICOLÁS ALBORNOZ TIBASOZA Spanisch

Inhalt der Mindmap

Modules

  1. It is a collection of functions, typeclasses and types

  2. Examples of Modules

    • Data.List
      • Imports functions that works with Lists
        • Intersperce
        • Intercalate
        • Transpose
        • Concat
        • concatMap
    • Data.Char
      • Imports functions that works with Char
        • ToUpper
        • ToLower
        • digitToInt
        • IsDigit
    • Data.Map
      • Imports functions that works with Maps
        • Are lists that are used to store key-value pairs
        • insert
        • size
        • Singleton
        • Lookup
    • Data.Set
      • Imports functions that works with Sets
        • Sets are like the ones in mathematics, in Haskell is like a combination between Maps and lists
        • fromList
        • intersection
        • differences
        • Union
  3. Modules can be created

    • it is necessary to specify de module name
    • In the module definition we mention the functions that will be exported
    • Implement the functions within the module
    • There are two ways to import a module
      • Normal
        • import Data.List
      • Qualified
        • import qualified Data.List as List

Informationen

Beschreibung
Mindmap am Modules, erstellt von NICOLÁS ALBORNOZ TIBASOZA am 26/03/2019.
Aufrufe
0
Bewertung

Mehr zu Haskell Modules and Libraries

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck