What is a first class citizen function?
问题 What is a first class citizen function? Does Java supports first class citizen function? Edit: As mention on Wikepedia First class functions are a necessity for the functional programming style. Is there any other use of first class functions? 回答1: A language that considers procedures to be "first-class" allows functions to be passed around just like any other value . Languages like Java 7 (and earlier) and C "kind of" have this capability: C allows function pointers to be passed around, but