bolt/spark/array.py
def first(self):
        """
        Return the first element of an array
        """
        from bolt.local.array import BoltArrayLocal
        rdd = self._rdd if self._ordered else self._rdd.sortByKey()
        return BoltArrayLocal(rdd.values().first())
def first(self):
        from bolt.local.array import BoltArrayLocal
        rdd = self._rdd if self._ordered else self._rdd.sortByKey()
        return BoltArrayLocal(rdd.values().first())
def first ( self ) : from bolt . local . array import BoltArrayLocal rdd = self . _rdd if self . _ordered else self . _rdd . sortByKey ( ) return BoltArrayLocal ( rdd . values ( ) . first ( ) )
Return the first element of an array
Return the first element of an array