~

object ~

File extension extractor

class Object
trait Matchable
class Any
~.type

Value members

Concrete methods

def unapply(path: Path): Option[(Path, String)]

File extension extractor for Path: Path("example.json") match { case Root / "example" ~ "json" => ...

File extension extractor for Path: Path("example.json") match { case Root / "example" ~ "json" => ...

def unapply(fileName: String): Option[(String, String)]

File extension matcher for String:

File extension matcher for String:

 "example.json" match {
    case => "example" ~ "json" => ...