about enumeration + anonymous functions