package Ġde . t roid o . ek st end . collections Ċ Ċ import Ġjava . util . Queue Ċ Ċ @ Suppress (" NOTH ING _ TO _ INLINE ", Ġ" S ENSE LESS _ COMP AR IS ON ") Ċ inline Ġfun Ġ< T Ġ: ĠAny > ĠQueue < T >. sequence (): ĠSequence < T > Ġ= ĊĠĠĠĠĠĠĠ Ġgenerate Sequence ( this :: poll ). take While Ġ{ Ġit Ġ!= Ġnull Ġ} Ċ Ċ inline Ġfun Ġ< T Ġ: ĠAny > ĠQueue < T >. forEach Pol led ( f : Ġ( T ) Ġ-> ĠUnit ) Ġ= ĊĠĠĠĠĠĠĠ Ġsequence (). forEach ( f ) Ċ