with the signature diffFolge:: (Integer, Integer) -> [Integer]
, which applied to the argument pair (m, n),
m, n> 0, the episode of the difference values of m and n supplies. The first element of the
Result list is m, the last but one element is always is greater than 0 and the last element
either 0 or a value strictly less than 0
i write it so
diffFolge :: (Integer,Integer) -> [Integer]
diffFolge (m,n) = if m > 0 && n > 0 then [m,m-n..n-2*n] else []
example
input : diffFolge (5,1)
output : [5,4,3,2,1,0]
example input : diffFolge (5,2) output :[5,3,1,-1] ---> This is true by my code
but i take as result [5,4,3,2,1,0,-1]
by first one how can i correct this