Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static <E> Cell<E> isInList(E obj, Cell<E> lst)
- {
- if(obj.equals(lst.first))
- {
- lst.first = lst.first.first;
- }
- lst = lst.rest;
- return lst;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement