MiP*_*MiP 3 .net f# functional-programming terminology language-design
在函数式编程中,调用不接受参数的函数的正确名称是什么?例如:
// 2 types of execute functions
type Function =
| UnitFunction of (unit -> unit)
| OperandFunction of (unit16 -> unit)
let nop () =
()
let shiftRegisterA operand =
registers.A <- registers.A <<< operand
Run Code Online (Sandbox Code Playgroud)
可以nop称为a UnitFunction,shiftRegisterA被称为OperandFunction?
| 归档时间: |
|
| 查看次数: |
138 次 |
| 最近记录: |