(value)
return value
Makes a value out of iterable if it is a list or tuple itself

    >>> unArrayizeValue([u'1'])
    u'1'
Makes a value out of iterable if it is a list or tuple itself
Makes a value out of iterable if it is a list or tuple itself
def unArrayizeValue(value):
    """
    Makes a value out of iterable if it is a list or tuple itself

    >>> unArrayizeValue([u'1'])
    u'1'
    """

    if isListLike(value):
        if not value:
            value = None
        elif len(value) == 1 and not isListLike(value[0]):
            value = value[0]
        else:
            _ = filter(lambda _: _ is not None, (_ for _ in flattenValue(value)))
            value = _[0] if len(_) > 0 else None

    return value
def unArrayizeValue ( value ) : if isListLike ( value ) : if not value : value = None elif len ( value ) == 1 and not isListLike ( value [ 0 ] ) : value = value [ 0 ] else : _ = filter ( lambda _ : _ is not None , ( _ for _ in flattenValue ( value ) ) ) value = _ [ 0 ] if len ( _ ) > 0 else None return value