mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 02:25:39 +03:00
34 lines
378 B
Markdown
34 lines
378 B
Markdown
```ucm:hide
|
|
scratch/main> builtins.mergeio
|
|
```
|
|
|
|
```unison:hide
|
|
|
|
{{ Type doc }}
|
|
structural type Optional a =
|
|
None
|
|
| Some a
|
|
|
|
{{
|
|
Multi line
|
|
|
|
Term doc
|
|
}}
|
|
List.map :
|
|
(a -> b)
|
|
-> [a]
|
|
-> [b]
|
|
List.map f = cases
|
|
(x +: xs) -> f x +: List.map f xs
|
|
[] -> []
|
|
|
|
test> z = let
|
|
x = "hello"
|
|
y = "world"
|
|
[Ok (x ++ y)]
|
|
```
|
|
|
|
```ucm
|
|
scratch/main> debug.lsp.fold-ranges
|
|
```
|