code: def last(predicate=None):
      
  
      predicate = true if predicate is None else predicate
  
      def last_transducer(reducer):
          return Last(reducer, predicate)
  
      return last_transducer
docs: Create a transducer which obtains the last item.