Skip to content

Commit

Permalink
fix: make infix tuple methods not internal
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed May 31, 2024
1 parent 849ee74 commit 6e3a911
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package com.mineinabyss.idofront.util

import java.io.Serializable

internal infix fun <A, B, C> Pair<A, B>.to(that: C): Triple<A, B, C> = Triple(this.first, this.second, that)
internal infix fun <A, B, C, D> Triple<A, B, C>.to(that: D): Quadruple<A, B, C, D> = Quadruple(this.first, this.second, this.third, that)
infix fun <A, B, C> Pair<A, B>.to(that: C): Triple<A, B, C> = Triple(this.first, this.second, that)
infix fun <A, B, C, D> Triple<A, B, C>.to(that: D): Quadruple<A, B, C, D> = Quadruple(this.first, this.second, this.third, that)

data class Quadruple<out A, out B, out C, out D>(
val first: A,
Expand Down

0 comments on commit 6e3a911

Please sign in to comment.