How do i check if 2 items are in the same list in sml? I tried changing a member function but i could not make it work.
val routeList1 = ["Princes Street", "Haymarket", "Craiglockhart", "Musselburgh", "Stoneybank"]
if want to check if both "Princes Street"
and "Haymarket"
are in routeList1
I am new to this language, so any help would be nice