Safe HaskellSafe-Inferred

PreludeExamples

Synopsis

Documentation

myZip :: [a] -> [b] -> [(a, b)] #

addToFront :: a -> b -> ([a], [b]) -> ([a], [b]) #

myUnzip :: [(a, b)] -> ([a], [b]) #

nth :: [a] -> Int -> a #

myTake :: Int -> [a] -> [a] #

myCatMaybes :: [Maybe a] -> [a] #

myCatMaybes takes a list of Maybe values lst and returns all values contained inside Just within lst.

>>> catMaybes [Just 1, Nothing, Just 3]
[1,3]

isPositive :: Int -> Bool #

type Name = String #

type Age = Int #

type StudentNo = Int #

type CourseCode = String #

type Database = [Student] #