Hi
I've got to make a function to which is given a key (as a string), a value (as a string) and a an association list of keys and values (as [(String, String)]). The function is meant to add the key and value pair on to the end of the list, and, if the key is already present in the list with an associated value, delete the old value. I've tried using lookup on the key and the list, but I'm not sure what to do with the output - the output type of the lookup function is 'Maybe', and I can't seem to do list functions (like dropping elements) on it. Is there any way I can look through the list and delete any list element with a given key without knowing the value associated with it?
Thanks