public static < T > T pop ( List < T > self ) { if ( self . isEmpty ( ) ) { throw new NoSuchElementException ( "Cannot pop() an empty List" ) ; } return self . remove ( 0 ) ; }
Removes the initial item from the List .