Skip to content

we do not have a method with name tailOption in the scala collections #2338

Open
@robatipoor

Description

@robatipoor

Written in this part of the scala3 book collections-methods

tail throws an java.lang.UnsupportedOperationException if the list is empty, so just like head and headOption, there’s also a tailOption method, which is preferred in functional programming.

But we do not have a method with name tailOption in the scala collections

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions