In this post I want to show how you can implement common list operations: union, intersection, difference and concatenation. Concatenation is the simplest of them all, because type List already has a function call append that does everything for you.
let concat left right =
List.append left right
The union of two lists is a list containing all the distinct elements from…