Skip to content

Instantly share code, notes, and snippets.

View aztek's full-sized avatar

Evgenii Kotelnikov aztek

View GitHub Profile
@stanch
stanch / gist:6421641
Created September 3, 2013 09:31
Annotation-based API for scala-workflow
/* Basic example */
@workflow[List] val x = List(1, 2) * List(4, 5)
/* Using @context */
@context[Option] val x = {
$(Some(42) + 1) should equal (Some(43))
$(Some(10) + Some(5) * Some(2)) should equal (Some(20))
}
@context[List] val x = {