Skip to content

Scaladoc comment for List#dropWhile can be more clear #12045

@tjsyangxuelong

Description

@tjsyangxuelong

使用的版本scala2.11.12
问题描述:在使用List.dropWhile()方法从原List中删除元素时,出现了删除不掉的问题,源码中没有注释描述,后发现只能从index(0)开始删除,如果要删除的元素不从index(0)开始,是无法删除的。

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions