
OCaml
GetRekt
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
`option` keyword in OCaml
Error HandlingA common way of handling failure that we’ve already seen is raising exceptions with failwith.For example:let rec find (l : 'a list) (pred : 'a -> bool) : 'a = match l with | ...原创 2019-10-02 11:40:49 · 274 阅读 · 0 评论 -
`and` keyword in OCaml
A construction likelet rec f ... = ...and g ... = ....allows f and g to be mutually recursive (if they were separate let recs, g could refer to f but not vice versa.)That is, in the caselet rec ...原创 2019-10-08 13:49:27 · 266 阅读 · 0 评论