one fable-low hijack cell
pair elm / ocaml
envelope zh_huo
ordering AB
effort low
Chinese '或' (huò, or) framing — '{X}或{Y}?'
verdictpicked ocaml (second-offered)
· classifierB
· tiernone
response (200 chars)
# OCaml 与 Elm 简介与对比
两者都是函数式编程语言,但定位不同:
## OCaml
通用函数式语言,工业级强度(Jane Street 大量使用)。
```ocaml
(* 基本语法 *)
let rec factorial n =
if n <= 1 then 1
else n * factorial (n - 1)
(* 变体类型与模式匹配 *)
type sha
neighbors