def peek(self):
        """Returns the last item in vector or None if vector is empty"""
        if self.length == 0: return None
        return self.get(self.length-1)
dataset/ETHPy150Open kachayev/fn.py/fn/immutable/trie.py/Vector.peek/original