Define list? What are the ways to create a list in Haskell?

devquora
devquora

Posted On: Feb 22, 2018

 

 A list is a single linked list like one looks in an imperative language, but there is one major important difference. Only and the only operation we have is to put a node at the start of the list. We cannot change any values within a list, including the pointers from one list node to another.

Usage of square brackets can create a list in Haskell with commas, which separates the list’s values. There are only four functions, which are normally required, but because lists are so widely used in Haskell programs, the prelude provides various another functions also.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Haskell Interview Questions

    Define Haskell?

    Haskell is the advanced functional programming language. Haskell is the language that is built around functions, usin..

    Haskell Interview Questions

    In which language is Haskell written?

    Haskell is written in various languages. It is a general-purpose programming language; Haskell is formed without h..

    Haskell Interview Questions

    State the key features of Haskell programming Language?

    Various features of Haskell programming language are Lazy evaluation Statically Typed Type inference Purely functional ..