unison/unison-src/transcripts/patterns.md

13 lines
234 B
Markdown
Raw Permalink Normal View History

2024-03-18 19:01:43 +03:00
```ucm:hide
scratch/main> builtins.merge
2024-03-18 19:01:43 +03:00
```
Some tests of pattern behavior.
```unison
p1 = join [literal "blue", literal "frog"]
> Pattern.run (many p1) "bluefrogbluegoat"
> Pattern.run (many.corrected p1) "bluefrogbluegoat"
2024-03-18 19:01:43 +03:00
```