haskell recursive function
- by snorlaks
Hello,
Please help me with writing function which takes two arguments : list of ints and index (int) and returns list of integers with negative of value on specified index position in the table
MyReverse :: [Int]-Int-[Int]
for example
myReverse [1,2,3,4,5] 3 = [1,2,-3,4,5]
if index is bigger then length of the list or smaller then 0 return the same list.
Thanks for help