def descendent(self, type=om.MFn.kInvalid):
    'Singular version of :func:`descendents()`\n\n        A recursive, depth-first search.\n\n        .. code-block:: python\n\n            a\n            |\n            b---d\n            |   |\n            c   e\n\n        Example:\n            >>> _ = cmds.file(new=True, force=True)\n            >>> a = createNode("transform", "a")\n            >>> b = createNode("transform", "b", parent=a)\n            >>> c = createNode("transform", "c", parent=b)\n            >>> d = createNode("transform", "d", parent=b)\n            >>> e = createNode("transform", "e", parent=d)\n            >>> a.descendent() == a.child()\n            True\n            >>> list(a.descendents()) == [b, c, d, e]\n            True\n            >>> f = createNode("mesh", "f", parent=e)\n            >>> list(a.descendents(type="mesh")) == [f]\n            True\n\n        '
    return next(self.descendents(type), None)
Singular version of :func:`descendents()`

A recursive, depth-first search.

.. code-block:: python

    a
    |
    b---d
    |   |
    c   e

Example:
    >>> _ = cmds.file(new=True, force=True)
    >>> a = createNode("transform", "a")
    >>> b = createNode("transform", "b", parent=a)
    >>> c = createNode("transform", "c", parent=b)
    >>> d = createNode("transform", "d", parent=b)
    >>> e = createNode("transform", "e", parent=d)
    >>> a.descendent() == a.child()
    True
    >>> list(a.descendents()) == [b, c, d, e]
    True
    >>> f = createNode("mesh", "f", parent=e)
    >>> list(a.descendents(type="mesh")) == [f]
    True
def descendent(self, type=om.MFn.kInvalid):
    'Singular version of :func:`descendents()`\n\n        A recursive, depth-first search.\n\n        .. code-block:: python\n\n            a\n            |\n            b---d\n            |   |\n            c   e\n\n        Example:\n            >>> _ = cmds.file(new=True, force=True)\n            >>> a = createNode("transform", "a")\n            >>> b = createNode("transform", "b", parent=a)\n            >>> c = createNode("transform", "c", parent=b)\n            >>> d = createNode("transform", "d", parent=b)\n            >>> e = createNode("transform", "e", parent=d)\n            >>> a.descendent() == a.child()\n            True\n            >>> list(a.descendents()) == [b, c, d, e]\n            True\n            >>> f = createNode("mesh", "f", parent=e)\n            >>> list(a.descendents(type="mesh")) == [f]\n            True\n\n        '
    return next(self.descendents(type), None)