unison/unison-src/transcripts/lsp-fold-ranges.md
2024-06-25 11:11:07 -07:00

378 B

scratch/main> builtins.mergeio

{{ 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)]
scratch/main> debug.lsp.fold-ranges