Closed Janiczek closed 2 years ago
The edge case actually helped disprove the validity of the implementation of isPermutationOf that I had in my head:
isPermutationOf
isPermutationOf xs ys = (List.length xs == List.length ys) && List.all (\x -> List.member x ys) xs && List.all (\y -> List.member y xs) ys
Great! Thanks @Janiczek
The edge case actually helped disprove the validity of the implementation of
isPermutationOf
that I had in my head: