I have to write a clojure function, that compares lines in a file.
My file contains information like this:
{:something1 1
:something2 2
:something2 2
:something3 3
:something4 4
:something4 4
}
You can see it is written to define a hash. I want to import the hash in my program, but before doing so, I need to remove every line that is equal to other line. My lines need to be unique. How can I do this?
I tried few things, but they were complete fails.
Test:
data.datcontains:result: