I’m sure this could be done better, so just wondering how you would compare all values in two lists, returning true if all values are the same.
My current solution:
secret = [3,4,5,1,3,6] challenge = [3,4,5,1,3,6] List.map2 (==) secret challenge |> List.all (\c -> c == True) --> True
I’d like to just use the core, but examples using
List.Extra or something else would be interesting for my education. Specifically, I think this may be a time I could use the
>> operator, but I have trouble conceptualising its use.