Last active
January 1, 2019 16:48
-
-
Save manishkkatoch/6778a620798d5e9410738e62adb4a240 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object syntax { | |
implicit class RichDataSet[A](dataSet: Dataset[A]) { | |
val enriched = this | |
def apply[K](column: Witness.Lt[Symbol])(implicit | |
exists: PropertyExists[A, column.T, K]): Column = | |
new Column(column.value.name) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment