Elixir Solution Using MapSet
elixir\ndefmodule Solution do\n  @spec find_difference(nums1 :: [integer], nums2 :: [integer]) :: [[integer]]\n  def find_difference(nums1, nums2) do\n    s1 = 
```elixir\ndefmodule Solution do\n  @spec find_difference(nums1 :: [integer], nums2 :: [integer]) :: [[integer]]\n  def find_difference(nums1, nums2) do\n    s1 = MapSet.new(nums1)\n    s2 = MapSet.new(nums2)\n    [MapSet.difference(s1, s2) |> Enum.to_list(), MapSet.difference(s2, s1) |> Enum.to_list()]\n  end\nend\n```
['Elixir']