Skip to content

Instantly share code, notes, and snippets.

@lforite
Last active February 25, 2020 08:07
Show Gist options
  • Select an option

  • Save lforite/f06dc2ac64df48277ec2afd3c4270929 to your computer and use it in GitHub Desktop.

Select an option

Save lforite/f06dc2ac64df48277ec2afd3c4270929 to your computer and use it in GitHub Desktop.
type Traceable[T] = CorrelationId ?=> T
//then
given cid: CorrelationId = ...
def f(x: Int): Traceable[Int] = ...
f(2) using cid // explicit argument
f(2) // argument is inferred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment