2

I would like to transform the input
elems = [a, b, c]
terms = [t1, t2]
@spec contains?(term, elem) :: boolean
def contains?(term, elem), do: #implementation
to either of
%{t1 => [a, b], t2 => [c]}
or
%{t1 => [a], t2 => [b, c]}
where
t1 |> contains?(a) #=> true
t1 |> contains?(b) #=> true
t1 |>...