the cedar ledge

Prelude - Haskell's Standard Library

Date: November 3 2021

Summary: An overview of important components from Haskell's standard

Keywords: #library #package #standard #prelude #haskell #programming #archive

Bibliography

Not Available

Table of Contents

    1. Identity Function
  1. How To Cite
  2. References:
  3. Discussion:

Identity Function

id returns the argument it is given:

-- Using Prelude to declare the identity function
-- `a` is a type variable and stands in for all types
id :: a -> a

-- Definition of the function
id x = x

How To Cite

Zelko, Jacob. Prelude - Haskell's Standard Library. https://jacobzelko.com/11032021171123-prelude-haskell-library. November 3 2021.

References:

Discussion:

CC BY-SA 4.0 Jacob Zelko. Last modified: May 19, 2024. Website built with Franklin.jl and the Julia programming language.