canFind.canFind

Returns true if and only if pred(e) is true for any value e in the input range range. Performs (at most) O(haystack.length) evaluations of pred.

  1. bool canFind(Range haystack)
    template canFind(alias pred = "a == b")
    bool
    canFind
    (
    Range
    )
    (
    Range haystack
    )
    if (
    is(typeof(find!pred(haystack)))
    )
  2. bool canFind(Range haystack, Element needle)
  3. size_t canFind(Range haystack, Needles needles)

Meta