package Ġcom . example Ċ Ċ fun Ġmain () Ġ{ ĊĠĠĠ Ġval Ġsp ices Ġ= ĠlistOf (" cur ry ", Ġ" pep per ", Ġ" cay enne ", Ġ" ging er ", Ġ" red Ġcur ry ", Ġ" green Ġcur ry ", Ġ" red Ġpep per " Ġ) ĊĠĠĠ Ġprintln ( Ġsp ices . filter Ġ{ Ġit . contains (" cur ry ") Ġ}. sorted By Ġ{ Ġit . length Ġ}) ĊĠĠĠ Ġprintln ( Ġsp ices . filter Ġ{ Ġit . startsWith (" c ") Ġ&& Ġit . endsWith (" e ") Ġ}) ĊĠĠĠ Ġprintln ( Ġsp ices . filter Ġ{ Ġit . startsWith (" c ") }. filter { Ġit . endsWith (" e ") Ġ}) ĊĠĠĠ Ġprintln ( Ġsp ices . take ( 3 ). filter Ġ{ Ġit . startsWith (" c ") Ġ}) Ċ }