¡GoConqr estrena diseño! Cuéntanos qué te parece.

Mapa mental

Haskell

CASTILLO ZAMBRANO LUIS FELIPE Español

Contenido del mapa

Haskell

  1. It is a functional programming language

    • Several operators can be used
      • When it is a negative number it is recommended to use ()
      • Each operator is executing a function
        • Known as infix function
        • Most functions that do not use numbers are usually prefixed
    • You can compare elements but they must be of the same type of data
      • The inequality test is / =
  2. The ghci statement must be used for its correct compilation

  3. When using the if condition, it is mandatory to use

  4. To call a function write the name of the function and the parameters separated by spaces

    • you can use functions with operators
    • The functions can be used infixed like the operators
    • you can call a function in the call to another
      • bar (barra 3)
    • after creating the function in a text file it runs like this ":l functionName.hs"
      • this operation should be used when changes are made
    • The functions should not be in a particular order
    • Functions can not start with capital letters
  5. The lists are the most used data structure

    • a list must be of a data type for example a list of integers
      • Ranks can be used to fill lists for example [1..20]
        • you can specify how a range is increased
        • Do not use floating numbers in list ranges
        • You can create infinite lists
        • Comprehension lists that are used to use a range of a function
    • To join two lists is used ++
    • The chains are lists
    • the operator can be used: to add to the start of a list
      • these methods can be used in lists head, tail, last and init
    • a list can contain lists
    • you can compare lists with the same operators
  6. tuples can have a combination of several types

Información

Descripción
Mapa Mental sobre Haskell, creado por CASTILLO ZAMBRANO LUIS FELIPE el 14/02/2018.
Visitas
2
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?