count

Array-specialization of count with default predicate and no needle.

  1. size_t count(T[] haystack, T[] needle)
  2. size_t count(T[] haystack, T needle)
  3. size_t count(T[] haystack)
    size_t
    count
    (
    T
    )
    (
    scope const T[] haystack
    )

Examples

assert("abc_abc".count == 7);

Meta