But it's more useful to define it this way:
template<class X>
bool find(InSeq<X>& s, X x)
{
while (s.avail()) {
if (s.next() == x)
return true;
}
return false;
}
Previous slide
Next slide
Back to first slide
View graphic version