All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.dexclaimation.ahql.utils.FlatKeep.scala Maven / Gradle / Ivy

Go to download

Akka Http Query Library, a minimal GraphQL client and server exposing as a set of akka-http utilities

The newest version!
//
//  FlatKeep.scala
//  ahql
//
//  Created by d-exclaimation on 3:25 AM.
//

package io.github.dexclaimation.ahql.utils

object FlatKeep {
  def bothR[R1, R2, L]: ((R1, R2), L) => (R1, R2, L) = (r, l) => (r._1, r._2, l)

  def bothL[R, L1, L2]: (R, (L1, L2)) => (R, L1, L2) = (r, l) => (r, l._1, l._2)

  def both[R1, R2, L1, L2]: ((R1, R2), (L1, L2)) => (R1, R2, L1, L2) = (r, l) => (r._1, r._2, l._1, l._2)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy