Difference between revisions of "Cum se extrage un substring"
Jump to navigation
Jump to search
(Created page with "Ori cautati o functie din biblioteca ori scrieti dvs una: <haskell> substring :: Int -> Int -> String -> String substring start end text = take (end - start) (drop start text...") |
(No difference)
|
Revision as of 12:47, 9 October 2019
Ori cautati o functie din biblioteca ori scrieti dvs una:
substring :: Int -> Int -> String -> String
substring start end text = take (end - start) (drop start text)
- Main Data.Text> substring 2 6 "alfaville"
"favi"
- Main Data.Text>