ScopeFunctions

io.github.positionpal.location.commons.ScopeFunctions

A set of scope functions (inspired by Kotlin) to improve the readability of the code.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

inline def withContext[A, T](ctx: A)(f: A => T): T

Extensions

Extensions

extension [A](a: A)
inline def also(f: A => Unit): A

Attributes

Returns

this after having applied the given function f to it.

inline def let[T](f: A => T): T

Attributes

Returns

the result of applying the given function f to this.