intersect()

intersect()

Overview

The intersect() function takes listVariableOne and listVariableTwo as arguments, and returns a list containing common elements from both the given lists.

Return Type

  • List

Syntax

<variable> = <listVariableOne>.intersect( <listVariableTwo> );
ParameterDescriptionData type
<variable>Variable which will contain the returned list.LIST
<listVariableOne>The first list variable from which the common elements will be returned.LIST
<listVariableTwo>The second list variable from which the common elements will be returned.LIST

Examples

listOne = {"Zoho Creator", "Zoho CRM", "Zoho Projects"};
listTwo = {"Zoho Mail", "Zoho Analytics", "Zoho Creator"};
commonList= listOne.intersect(listTwo);                         //returns {"Zoho Creator"}

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com