/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

  1. package scalaz
  2. ////
  3. /**
  4. *
  5. */
  6. ////
  7. @deprecated("Length is deprecated, use Foldable#length instead", "7.1")
  8. trait Length[F[_]] { self =>
  9. ////
  10. def length[A](fa: F[A]): Int
  11. // derived functions
  12. ////
  13. val lengthSyntax = new scalaz.syntax.LengthSyntax[F] { def F = Length.this }
  14. }
  15. @deprecated("Length is deprecated, use Foldable#length instead", "7.1")
  16. object Length {
  17. @inline def apply[F[_]](implicit F: Length[F]): Length[F] = F
  18. ////
  19. ////
  20. }