diff --git a/exercises/Set9a.hs b/exercises/Set9a.hs index c496acd..1ef63ec 100644 --- a/exercises/Set9a.hs +++ b/exercises/Set9a.hs @@ -235,7 +235,7 @@ identity n = [0 .. n - 1] -- This function shows how permutations can be composed. Do not edit this -- function. multiply :: Permutation -> Permutation -> Permutation -multiply p q = map (\i -> p !! (q !! i)) (identity (length p - 1)) +multiply p q = map (\i -> p !! (q !! i)) (identity (length p)) permute :: Permutation -> [a] -> [a] permute = todo