Write Haskell code for the function substitute-splice, which takes three arguments, and substitutes the first for every
Posted: Sun May 15, 2022 7:50 am
Write Haskell code for the function substitute-splice, which
takes three arguments, and substitutes the first for every
occurrence of the second in the third.
For example
substitute-splice([ 8,9], 3, [1,2,3,4]) -> [1,2,8,9,4]
takes three arguments, and substitutes the first for every
occurrence of the second in the third.
For example
substitute-splice([ 8,9], 3, [1,2,3,4]) -> [1,2,8,9,4]