Any difference between First Class Function and High Order Function

前端 未结 6 1495
小鲜肉
小鲜肉 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:20

    First class functions mean everything you can do with other types(variables, booleans, numbers...), you can do it with functions.

    For example Assign them to variables, pass it around, create them on fly.

提交回复
热议问题