Skip to content

Commit

Permalink
extractSelf convenience helper
Browse files Browse the repository at this point in the history
  • Loading branch information
pshirshov committed Dec 23, 2024
1 parent 2f91adb commit 9f7bcf9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@ object AbstractBindingDefDSL {
addOp(SubcontextInstruction.SetExtractor(f))(toSame)
}

final def extractSelf: Self = {
addOp(SubcontextInstruction.SetExtractor(Functoid.identity[T]))(toSame)
}

final def localDependency[B: Tag]: Self = {
localDependency(DIKey[B])
}
Expand Down

0 comments on commit 9f7bcf9

Please sign in to comment.