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

typo.dsl.internal.mkFragment.scala Maven / Gradle / Ivy

There is a newer version: 0.28.0
Show newest version
package typo.dsl.internal

import doobie.util.fragment.Fragment

object mkFragment {
  implicit class FragmentOps[I[t] <: Iterable[t]](fragments: I[Fragment]) {
    def mkFragment(sep: Fragment): Fragment = {
      fragments.reduceOption((a, b) => a ++ sep ++ b).getOrElse(Fragment.empty)
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy