Skip to content

Commit ade6857

Browse files
authored
Merge pull request #5 from JoaoFelipe3/patch-4
Made some stuff better
2 parents 9085f3d + 1c8ab0f commit ade6857

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib.ua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Upscale an array(b) by some amount(a)
2-
Upscale ← ⍜⊙⍉▽⟜
2+
Upscale ← ▽⟜≡
33
# Replace all occurrences of (a) in (c) with (b)
4-
Replace ← ⍜⊜∘≡⋅∘ ⊂⊢:≡/(×⊃≥⋅(≠0))◫2./+ ≡↻⊙¤¯⇡⧻⟜⌕⊙⊓.¤
4+
Replace ← ⍜⊜∘≡⋅∘⊓⊸⦷¤
55

66
# Define a struct
77
Struct! ←^ ⊂⊃(
8-
□$"_ ← {_∘}\n"⊙(▽-1:@⊙⧻)
9-
| ⍚$"_ ← °□⊡_\n" :°⊏◌
8+
□$"_ ← {_∘}\n" ⊙(↯⊙@⊙⧻)
9+
| ⍚$"_ ← °□⊡_\n": °⊏◌
1010
) °⊂
1111

12-
---
12+
---test
1313
⍤⟜≍: [.1_1_2_2 .3_3_4_4] Upscale 2 [1_2 3_4]
1414
⍤⟜≍: "xyzracadxyzra" Replace "ab" "abracadabra" "xyz"
1515
⍤⟜≍: "yyyxxzyyy" Replace "xxx" "xxxxxzxxx" "yyy"

0 commit comments

Comments
 (0)