PolyFunction (original) (raw)

scala.PolyFunction

Marker trait for polymorphic function types.

This trait can only be refined with a polymorphic method, as long as that method is called apply, e.g.: PolyFunction { def apply[T_1, ..., T_M](x_1: P_1, ..., x_N: P_N): R } Exactly one term argument list is expected. The term argument list may be contextual.

This type will be erased to FunctionN or FunctionXXL.

Attributes

Source

PolyFunction.scala

Graph

Supertypes

In this article

Generated with

Copyright (c) 2002-2025, LAMP/EPFL

Copyright (c) 2002-2025, LAMP/EPFL