code: def weld_str_capitalize(array):
      
      obj_id, weld_obj = create_weld_object(array)
  
      weld_template = """map(
      {array},
      |e: vec[i8]|
          let lenString = len(e);
          if(lenString > 0L,
              let res = appender[i8];
              let firstChar = lookup(e, 0L);
              let res = if(firstChar > 96c && firstChar < 123c, merge(res, firstChar - 32c), merge(res, firstChar));
              result(
                  for(slice(e, 1L, lenString - 1L),
                      res,
                      |c: appender[i8], j: i64, f: i8|
                          if(f > 64c && f < 91c,
                              merge(c, f + 32c),
                              merge(c, f)
                          )
                  )
              ),
              e)
  )"""
  
      weld_obj.weld_code = weld_template.format(array=obj_id)
  
      return weld_obj
docs: Capitalize first letter.
  
      Parameters
      ----------
      array : numpy.ndarray or WeldObject
          Input data.
  
      Returns
      -------
      WeldObject
          Representation of this computation.