Apex List Contains

The Idea, Contains/IndexOf Method for Lists, has been delivered in the Spring ’18 release. There are two new List methods: contains(listElement), and indexOf(listElement). The methods take a List element as an argument and return whether the List contains the element or the index in the List, respectively. This post looks at some interesting aspects of […]