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


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. November 3 2021.



CC BY-SA 4.0 Jacob Zelko. Last modified: November 24, 2023. Website built with Franklin.jl and the Julia programming language.