new tasks
This commit is contained in:
parent
2a4d27cea0
commit
80737d5a6a
1194 changed files with 15353 additions and 1 deletions
4
Task/Binary_strings/Haskell/binary_strings-6.hs
Normal file
4
Task/Binary_strings/Haskell/binary_strings-6.hs
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{- Take a certain substring, specified by
|
||||
two integers, from the given string -}
|
||||
strPull :: Int -> Int -> String -> String
|
||||
strPull x y s = take (y-x+1) (drop x s)
|
||||
Loading…
Add table
Add a link
Reference in a new issue