Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚从另一个问题中了解到 Haskell 被称为柯里化编程语言,因为它默认应用函数柯里化。显示此行为的其他语言是什么?
在不太深奥的语言中,主要是 Haskell:
f x y z = x + y * z g = f 4 r = g 7 8
OCaml 和 F#:
let f x y z = x + y * z let g = f 4 let r = g 7 8
并且在较小程度上 SML(图书馆使用较少的柯里化):
fun f x y z = x + y * z val g = f 4 val r = g 7 8