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

Mindmap

HASKELL

Nestor Ignacio Bernal Morales Spanisch

Inhalt der Mindmap

HASKELL

  1. Purely funcional programming language

    • Statically typed
    • Uses ghci
    • His extension is .hs
  2. Functions

    • Prefix
      • Explicit call
    • infix
    • declaration then parameters then =
    • Allways starts with lowercase
    • Definition
      • No parameter(s)
    • Cycle
    • Repeat
  3. Control statements

    • Operators < > = ==
    • The else is mandatory
    • The function always performs a return
  4. Data structures

    • Lists
      • Strings
        • !! for get something on an index
      • Are homogeneous
      • Declaration
        • Square brackets and comas
      • Concatenated by ++
        • It's not good for long lists
        • Es mejor usar :
          • Agrega al principio
      • Functions
        • head
        • tail
        • Last
        • Init
        • length
        • null
        • reverse
        • take
        • drop n elements
        • maximum minimum
      • list comprehension
        • Build sets
          • [output_function|input_set,predicate]
            • Predicate = filtering
              • Could be more than 1
  5. infers the data types

  6. Ranges

    • Enumerable things
      • Numbers
        • [1..20]
          • [2,4..20]
          • [20..1]
        • Integers/Decimals
      • Letters
        • ['A'..'Z']
  7. Tuples

    • Fixed size
    • Don't have to be homogeneous
    • In parenthesis inside swuared brakets
      • [(2,2),(3,3),(4,4)]
    • Functions
      • Fst
      • snd
      • zip
        • list of pairs

Informationen

Beschreibung
Mindmap am HASKELL, erstellt von Nestor Ignacio Bernal Morales am 19/02/2018.
Aufrufe
0
Bewertung

Mehr zu Functional Programming and Haskell

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck