How can a time function exist in functional programming?

后端 未结 15 501
Happy的楠姐
Happy的楠姐 2020-12-04 04:26

I\'ve to admit that I don\'t know much about functional programming. I read about it from here and there, and so came to know that in functional programming, a function retu

15条回答
  •  暖寄归人
    2020-12-04 05:04

    "Current time" is not a function. It is a parameter. If your code depends on current time, it means your code is parameterized by time.

提交回复
热议问题