implicit final class AnySyntax[A] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- AnySyntax
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new AnySyntax(a: A)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
ignore: Unit
- Annotations
- @silent( ... )
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
tap(f: (A) ⇒ Any): A
Applies the function
fto the valuea, ignores the result, and returns the original valuea.Applies the function
fto the valuea, ignores the result, and returns the original valuea. Practical for debugging, likex.someMethod.tee(println(_)).someOtherMethod.... Similar to theteeUNIX command. -
def
toString(): String
- Definition Classes
- Any
-
def
|>[B](f: (A) ⇒ B): B
Applies function
fto a valuea, likef(a), but in flipped order and doesn't need parentheses.Applies function
fto a valuea, likef(a), but in flipped order and doesn't need parentheses. Can be chained, likex |> f |> g.