Globally replace text in several files: Difference between revisions
Globally replace text in several files (view source)
Revision as of 11:31, 3 July 2021
, 2 years ago→{{header|Haskell}}
(→{{header|Haskell}}: Simplifed type of recursion in replace, preferred guards to if then else, applied Hlint) |
|||
Line 674:
replace a b = go
where
w = length a
go [] = []
go
| a `isPrefixOf`
| otherwise = x : go xs</lang>
'''Example:'''
|