2024-05-29 18:46:49 +03:00
|
|
|
```ucm
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> builtins.merge
|
2024-05-29 18:46:49 +03:00
|
|
|
|
|
|
|
Done.
|
|
|
|
|
|
|
|
```
|
|
|
|
```unison
|
|
|
|
double : Int -> Int
|
|
|
|
double x = x + x
|
|
|
|
|
|
|
|
redouble : Int -> Int
|
|
|
|
redouble x = double x + double x
|
|
|
|
```
|
|
|
|
|
|
|
|
```ucm
|
|
|
|
|
|
|
|
Loading changes detected in scratch.u.
|
|
|
|
|
|
|
|
I found and typechecked these definitions in scratch.u. If you
|
|
|
|
do an `add` or `update`, here's how your codebase would
|
|
|
|
change:
|
|
|
|
|
|
|
|
⍟ These new definitions are ok to `add`:
|
|
|
|
|
|
|
|
double : Int -> Int
|
|
|
|
redouble : Int -> Int
|
|
|
|
|
|
|
|
```
|
|
|
|
```ucm
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> add
|
2024-05-29 18:46:49 +03:00
|
|
|
|
|
|
|
⍟ I've added these definitions:
|
|
|
|
|
|
|
|
double : Int -> Int
|
|
|
|
redouble : Int -> Int
|
|
|
|
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> dependents double
|
2024-05-29 18:46:49 +03:00
|
|
|
|
|
|
|
Dependents of: double
|
|
|
|
|
|
|
|
Terms:
|
|
|
|
|
|
|
|
1. redouble
|
|
|
|
|
|
|
|
Tip: Try `view 1` to see the source of any numbered item in
|
|
|
|
the above list.
|
|
|
|
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> delete.term 1
|
2024-05-29 18:46:49 +03:00
|
|
|
|
2024-05-29 19:31:04 +03:00
|
|
|
Done.
|
2024-05-29 18:46:49 +03:00
|
|
|
|
2024-05-29 19:31:04 +03:00
|
|
|
```
|