Date: November 3 2021
Summary: An overview of important components from Haskell's standard
Keywords: #library #package #standard #prelude #haskell #programming #archive
Not Available
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
Zelko, Jacob. Prelude - Haskell's Standard Library. https://jacobzelko.com/11032021171123-prelude-haskell-library. November 3 2021.