Open
Description
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