vault backup: 2023-10-29 21:53:25
This commit is contained in:
@ -16,7 +16,7 @@ _: int list = [1, 2, 3]
|
||||
> In CAML, all the element in the list have to be of the same type.
|
||||
|
||||
```Ocaml
|
||||
# let l1 = ['H', 'i'];;
|
||||
# let l1 = ['H'; 'i'];;
|
||||
val l1 : char list = ['H'; 'i']
|
||||
# let l2 = ['C'; 'a'; 'm'; 'l'];;
|
||||
val l2 : char list = ['C' ; 'a' ;'m'; 'l']
|
||||
|
Reference in New Issue
Block a user