We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe5fb04 commit e34e60eCopy full SHA for e34e60e
src/commonMain/kotlin/ai/hypergraph/kaliningraph/automata/FSA.kt
@@ -11,8 +11,7 @@ import kotlin.time.TimeSource
11
typealias Arc = Π3A<Σᐩ>
12
typealias TSA = Set<Arc>
13
fun Arc.pretty() = "$π1 -<$π2>-> $π3"
14
-fun Σᐩ.coords(): Pair<Int, Int> =
15
- (length / 2 - 1).let { substring(2, it + 2).toInt() to substring(it + 3).toInt() }
+fun Σᐩ.coords(): Pair<Int, Int> = (length / 2 - 1).let { substring(2, it + 2).toInt() to substring(it + 3).toInt() }
16
// Triple representing (1) the global index of the state in the LA and the (2) x, (3) y coordinates
17
typealias STC = Triple<Int, Int, Int>
18
fun STC.coords() = π2 to π3
0 commit comments