4 lines
123 B
OCaml
4 lines
123 B
OCaml
let rec deoptionalise = function
|
|
| Some x :: xs -> x :: deoptionalise xs
|
|
| None :: xs -> deoptionalise xs
|
|
| [] -> []
|