code: def first(predicate=None):
      
  
      predicate = true if predicate is None else predicate
  
      def first_transducer(reducer):
          return First(reducer, predicate)
  
      return first_transducer
docs: Create a transducer which obtains the first item, then terminates.