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

com.twilio.guardrail.NelShim.scala Maven / Gradle / Ivy

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