Any difference between First Class Function and High Order Function

前端 未结 6 1490
小鲜肉
小鲜肉 2021-01-29 17:23

I\'m wondering whether/what difference between First Class Function and High Order Function.

I read through those two wiki pages and they looks rather similar. If they

6条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-29 18:15

    First class functions are functions that are treated like an object (or are assignable to a variable).

    Higher order functions are functions that take at least one first class function as a parameter, or return at least one first class function.

提交回复
热议问题