Hi everyone!
Here is an example to help you understand what I am trying to do. I want to switch the hashMap.get(id) and to NOT return all the values of the “type” like the code below, but only some of them. For example, in this case, I want to return only the “degree” and the “name”.
case(_) {
switch (hashMap.get(searchID)) {
case(null) {return null;};
case(?e) {
return ?{
name = e.name;
surname = e.surname;
id = e.id;
degree = e.degree;
role = e.role;
}
};
};
};
How could I do this?
Thank you!