unison/unison-src/transcripts/fix1390.md

29 lines
420 B
Markdown
Raw Permalink Normal View History

```ucm
scratch/main> builtins.merge
```
```unison
-- List.map : (a -> b) -> [a] -> [b]
List.map f =
go acc = cases
[] -> acc
h +: t -> go (acc :+ f h) t
go []
```
```ucm
scratch/main> add
scratch/main> view List.map
```
```unison
List.map2 : (g -> g2) -> [g] -> [g2]
List.map2 f =
unused = "just to give this a different hash"
go acc = cases
[] -> acc
h +: t -> go (acc :+ f h) t
go []
```