RosettaCodeData/Task/Binary-strings/Haskell/binary-strings-5.hs
Ingy döt Net 86c034bb8b new files
2013-04-10 12:38:42 -07:00

4 lines
132 B
Haskell

{- Take the specified number of characters
from the given string -}
strExtract :: Int -> String -> String
strExtract x s = take x s