(valueA, valueB, lowerCase=False)
return retVal
Returns intersection of the array-ized values

    >>> intersect([1, 2, 3], set([1,3]))
    [1, 3]
Returns intersection of the array-ized values
Returns intersection of the array - ized values
def intersect(valueA, valueB, lowerCase=False):
    """
    Returns intersection of the array-ized values

    >>> intersect([1, 2, 3], set([1,3]))
    [1, 3]
    """

    retVal = []

    if valueA and valueB:
        valueA = arrayizeValue(valueA)
        valueB = arrayizeValue(valueB)

        if lowerCase:
            valueA = [val.lower() if isinstance(val, basestring) else val for val in valueA]
            valueB = [val.lower() if isinstance(val, basestring) else val for val in valueB]

        retVal = [val for val in valueA if val in valueB]

    return retVal
def intersect ( valueA , valueB , lowerCase = False ) : retVal = [ ] if valueA and valueB : valueA = arrayizeValue ( valueA ) valueB = arrayizeValue ( valueB ) if lowerCase : valueA = [ val . lower ( ) if isinstance ( val , basestring ) else val for val in valueA ] valueB = [ val . lower ( ) if isinstance ( val , basestring ) else val for val in valueB ] retVal = [ val for val in valueA if val in valueB ] return retVal