Filtering symbols using lambda