LambdaPP 可以让你在 C 程序中实现匿名函数编程。
示例代码:
// for an example the table consists of a string keyed (room) of occupants // stored in a linked list. hashtable_t *table; hashtable_foreach(table, lambda void(list_t *list) { list_foreach(list, lambda void(const char *occupant) { printf(">> %s\n", occupant); } ); } );