data class Point(
val x: Int,
val y: Int,
)
// Custom operator to sum points:
operator fun Point.plus(other: Point) = Point(
x = x + other.x,
y = y + other.y,
)
c
chr
05/23/2023, 3:47 PM
If you’re in a `StyleSheet`/`StyleSheetBuilder` there’s a few methods you can use to represent those css selectors:
•
element1 + element2
is
adjacent(element1, element2)
•
element1 ~ element2
is
sibling(element1, element2)
• I don’t think
-
can be used to combine css selectors?
There’s a bunch you can look for in StyleSheetBuilder.kt