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]
Write Haskell code for the function substitute-splice, which takes three arguments, and substitutes the first for every
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write Haskell code for the function substitute-splice, which takes three arguments, and substitutes the first for every
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!