函数式核心概念
函数式核心概念
温佐镜 发表于5个月前
函数式核心概念
  • 发表于 5个月前
  • 阅读 7
  • 收藏 0
  • 点赞 0
  • 评论 0

【腾讯云】如何购买服务器最划算?>>>   

摘要: 函数式核心概念

First-class functions - You work with functions (pieces of behavior) as values. You can store them in variables, pass them as parameters, or return them from other functions.

Immutability - You work with immutable objects, which guarantees that their state can’t change after their creation.

No side effects - You use pure functions that return the same result given the same inputs and don’t modify the state of other objects or interact with the outside world.

 

摘抄《Kotlin in action》

共有 人打赏支持
粉丝 10
博文 32
码字总数 11554
×
温佐镜
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: