-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ site/dist | |
*.dll | ||
profile.yaml | ||
uiua.tmLanguage.json | ||
!/tests/* | ||
!/tests_*/* | ||
!/examples/* | ||
!/site/*.ua | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
⊟ [1 2 3] 4_5 | ||
|
||
≡⊟ [1 2 3] [4 5] | ||
|
||
≡⊟ [1 2 3] [] | ||
≡(⊂⊂) [1 2 3] [4 5 6] [] | ||
|
||
∵⊟ [1 2 3] [4 5] | ||
|
||
⊡ ↯0_2e [1] | ||
|
||
Ex ~ "example" | ||
Ex~RangeDiff | ||
|
||
F! ← F!^0 | ||
F!+ | ||
|
||
regex "([a-z]" "hello world" | ||
|
||
"Hello"_"Worrld" | ||
|
||
⍜⊏() ⊚. [ | ||
[0 0 1 0 0] | ||
[0 0 0 0 1] | ||
[1 0 0 0 0] | ||
[0 0 0 1 0] | ||
[0 1 0 0 0]] | ||
|
||
F ← [⋅⋅◌⍢(-1:0|>0)]1 | ||
F"oops" | ||
|
||
F ← [⋅◌ ⍥0] 1 | ||
F "oops" | ||
|
||
F ← ⌊×10[◌◌⍥gen]⧻:0 | ||
|
||
⊕⊢ [0 2 2] [1 2 3] | ||
|
||
+ ¤[1 2 3] [10_20_30_40 50_60_70_80] | ||
|
||
⇡⇡50 | ||
|
||
x ← &sc | ||
F! ←^ °⋕x◌ | ||
F!5 | ||
|
||
⇡1e20 | ||
|
||
⬚0≡(++) [1] [2 3 4] [5 6] | ||
|
||
5 | ||
⊸∘◌ | ||
|
||
F ← |39 ⍥+ | ||
|
||
⍜⊏(?≡⊂:9?) [0 2] [1_2 3_4 5_6 7_8] | ||
|
||
┌─╴M | ||
F ↚ +1 | ||
└─╴ | ||
M!F 5 | ||
|
||
d ← gen [] ⚂ | ||
D! ←^ $"_" d ◌ | ||
◌D!4 | ||
|
||
! ← ^0 | ||
!(^0) | ||
|
||
F ← |0 spawnF | ||
F | ||
|
||
┌─╴Foo | ||
|Bar {a} | ||
|Baz {a} | ||
└─╴ | ||
⍤⤙≍ 5 Foo~Baz~a Foo~Bar 5 | ||
|
||
°(⊂0?) | ||
|
||
⟜(@a @b) | ||
|
||
⊂?⟜(°△⍜⊢¬+1)⇡13 | ||
|
||
⊂:?⟜(°△⍜⊢¬+1)⇡13 | ||
|
||
# Experimental! | ||
quote(⊂⊂:⊂⊂,⊸:-7’+1⊡5."quote(⊂⊂:⊂⊂,⊸:-7’+1⊡5.") | ||
|
||
°binary 0_1_10 | ||
|
||
comptime(⍤@@@@) | ||
|
||
F! ← ^2 | ||
|
||
⬚0⌝⊏ ¯2 5 | ||
⬚0⌝⊡ ¯2 5 | ||
|
||
°¤ 1 | ||
|
||
°[∘] 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{[] "" {} ×i[]} | ||
⍤⤙≍ ⇡4 ≡◇type # No inline! | ||
|
||
{[5] "H" {1_2_3} [i]} | ||
{[] "" {} ×i[]} | ||
⍤⤙≍ ⊙(⍚↘1) # No inline! | ||
|
||
⍤⤙≍ ↘1"S " @ # No inline! |