Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1.  
  2.     public static <E> Cell<E> isInList(E obj, Cell<E> lst)
  3.     {
  4.          
  5.         if(obj.equals(lst.first))
  6.         {
  7.             lst.first = lst.first.first;
  8.         }
  9.         lst = lst.rest;
  10.         return lst;
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement