98 lines
1.7 KiB
Markdown
98 lines
1.7 KiB
Markdown
|
The Unison programming language is a fun and intuitive programming language for storage.
|
|||
|
|
|||
|
For a helpful list of practice problems, try out the exercises [found on here in Exercism](https://exercism.org/tracks/unison/).
|
|||
|
|
|||
|
|
|||
|
---
|
|||
|
|
|||
|
|
|||
|
# Run your first program on Unison
|
|||
|
|
|||
|
There is a [fantastic tutorial](https://www.unison-lang.org/learn/quickstart/) on how to get started here.
|
|||
|
|
|||
|
|
|||
|
When running the `ucm` (unison code manager), the following appears:
|
|||
|
|
|||
|
```ucm
|
|||
|
> ./unisonlanguage/ucm
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
I created a new codebase for you at /Users/shwethajayaraj
|
|||
|
|
|||
|
|
|||
|
|
|||
|
Now starting the Unison Codebase Manager (UCM)...
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
_____ _
|
|||
|
|
|||
|
| | |___|_|___ ___ ___
|
|||
|
|
|||
|
| | | | |_ -| . | |
|
|||
|
|
|||
|
|_____|_|_|_|___|___|_|_|
|
|||
|
|
|||
|
👋 Welcome to Unison!
|
|||
|
|
|||
|
You are running version: **79eeee7**
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
📚 Read the official docs at https://www.unison-lang.org/learn/
|
|||
|
|
|||
|
Type 'project.create' to get started.
|
|||
|
|
|||
|
|
|||
|
|
|||
|
.> project.create
|
|||
|
|
|||
|
|
|||
|
|
|||
|
🎉 I've created the project with the randomly-chosen name jolly-cheetah (use
|
|||
|
|
|||
|
`project.rename <new-name>` to change it).
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
I'll now fetch the latest version of the base Unison library...
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
Downloaded 12648 entities.
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
🎨 Type `ui` to explore this project's code in your browser.
|
|||
|
|
|||
|
🔭 Discover libraries at https://share.unison-lang.org
|
|||
|
|
|||
|
📖 Use `help-topic projects` to learn more about projects.
|
|||
|
|
|||
|
Write your first Unison code with UCM:
|
|||
|
|
|||
|
1. Open scratch.u.
|
|||
|
|
|||
|
2. Write some Unison code and save the file.
|
|||
|
|
|||
|
3. In UCM, type `add` to save it to your new project.
|
|||
|
|
|||
|
🎉 🥳 Happy coding!
|
|||
|
|
|||
|
|
|||
|
|
|||
|
jolly-cheetah/main>
|
|||
|
```
|