Snoc

object Snoc extends SnocFunctions
Companion
class
Source
Snoc.scala
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[S, A](prism: Prism[S, (S, A)]): Snoc[S, A]
def fromIso[S, A, B](iso: Iso[S, A])(ev: Snoc[A, B]): Snoc[S, B]

lift an instance of Snoc using an Iso

lift an instance of Snoc using an Iso

Source
Snoc.scala

Deprecated and Inherited methods

@deprecated("no replacement", since = "3.0.0-M1")
final def _snoc[S, A](init: S, last: A)(ev: Snoc[S, A]): S

append an element to the end

append an element to the end

Deprecated
[Since version 3.0.0-M1]
Inherited from
SnocFunctions
Source
Snoc.scala
@deprecated("no replacement", since = "3.0.0-M1")
final def _unsnoc[S, A](s: S)(ev: Snoc[S, A]): Option[(S, A)]

deconstruct an S between its init and last

deconstruct an S between its init and last

Deprecated
[Since version 3.0.0-M1]
Inherited from
SnocFunctions
Source
Snoc.scala
@deprecated("no replacement", since = "3.0.0-M1")
final def initOption[S, A](ev: Snoc[S, A]): Optional[S, S]
Deprecated
[Since version 3.0.0-M1]
Inherited from
SnocFunctions
Source
Snoc.scala
@deprecated("no replacement", since = "3.0.0-M1")
final def lastOption[S, A](ev: Snoc[S, A]): Optional[S, A]
Deprecated
[Since version 3.0.0-M1]
Inherited from
SnocFunctions
Source
Snoc.scala
@deprecated("no replacement", since = "3.0.0-M1")
final def snoc[S, A](ev: Snoc[S, A]): Prism[S, (S, A)]
Deprecated
[Since version 3.0.0-M1]
Inherited from
SnocFunctions
Source
Snoc.scala

Implicits

Implicits

implicit def chainSnoc[A]: Snoc[Chain[A], A]
implicit def lazyListSnoc[A]: Snoc[LazyList[A], A]
implicit def listSnoc[A]: Snoc[List[A], A]

Source
Snoc.scala
implicit val stringSnoc: Snoc[String, Char]
implicit def vectorSnoc[A]: Snoc[Vector[A], A]