All pastes #162994 Raw Edit

Something

public text v1 · immutable
·published 2006-09-07 01:31 UTC
rendered paste body
contains ( list : [T],
           needle : T ) =
    if list.empty ?
        false;
    else ?
        (h,t) = list.pop;
        if h == needle ?
            return true;
        else ?
            return t.contains cond;