
com.twilio.guardrail.NelShim.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of guardrail_2.12 Show documentation
Show all versions of guardrail_2.12 Show documentation
Principled code generation for Scala services from OpenAPI specifications
The newest version!
package com.twilio.guardrail
import cats.data.NonEmptyList
object NelShim {
implicit class RichNel[T](xs: NonEmptyList[T]) {
def last: T = xs.tail.lastOption.getOrElse(xs.head)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy