Scrapbook-0.4.0: code examples
Copyright© Frank Jung 2022
LicenseGPL-3
Safe HaskellSafe-Inferred
LanguageHaskell2010

MyTake

Description

 
Synopsis

Documentation

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

My version of take. This does not check for negative numbers.

>>> myTake 1 "abc"
"a"