@property
    def first(self):
        def _transform(xs):  # pylint: disable=missing-docstring, invalid-name
            try:
                return [iter(xs).next()]
            except StopIteration:
                return []

        return self.transform(_transform, 'first')
Return a Query that selects only the first element of this Query.
dataset/ETHPy150Open edx/bok-choy/bok_choy/query.py/Query.first