PageRenderTime 11ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/core/src/main/scala/scalaz/Length.scala

http://github.com/scalaz/scalaz
Scala | 25 lines | 10 code | 5 blank | 10 comment | 0 complexity | dfef1227deff5b3a761c81182fb13066 MD5 | raw file
 1package scalaz
 2
 3////
 4/**
 5 *
 6 */
 7////
 8@deprecated("Length is deprecated, use Foldable#length instead", "7.1")
 9trait Length[F[_]]  { self =>
10  ////
11  def length[A](fa: F[A]): Int
12  // derived functions
13
14  ////
15  val lengthSyntax = new scalaz.syntax.LengthSyntax[F] { def F = Length.this }
16}
17
18@deprecated("Length is deprecated, use Foldable#length instead", "7.1")
19object Length {
20  @inline def apply[F[_]](implicit F: Length[F]): Length[F] = F
21
22  ////
23
24  ////
25}