generate 根据数据创建一个列表 length 返回数据长度 Sort 根据传入的 compare 方法实现排序判断 indexOf 返回传入参数的位置 lastIndexWhere 返回传入参数的最后一个位置