There was an error while loading. Please reload this page.
2 parents 9085f3d + 1c8ab0f commit ade6857Copy full SHA for ade6857
lib.ua
@@ -1,15 +1,15 @@
1
# Upscale an array(b) by some amount(a)
2
-Upscale ← ⍜⊙⍉▽⟜▽
+Upscale ← ▽⟜≡▽
3
# Replace all occurrences of (a) in (c) with (b)
4
-Replace ← ⍜⊜∘≡⋅∘ ⊂⊢:≡/(×⊃≥⋅(≠0))◫2./+ ≡↻⊙¤¯⇡⧻⟜⌕⊙⊓.¤
+Replace ← ⍜⊜∘≡⋅∘⊓⊸⦷¤
5
6
# Define a struct
7
Struct! ←^ ⊂⊃(
8
- □$"_ ← {_∘}\n"⊙(▽-1:@⊙⧻)
9
-| ⍚$"_ ← °□⊡_\n" :°⊏◌
+ □$"_ ← {_∘}\n" ⊙(↯⊙@⊙⧻)
+| ⍚$"_ ← °□⊡_\n": °⊏◌
10
) °⊂
11
12
----
+---test
13
⍤⟜≍: [.1_1_2_2 .3_3_4_4] Upscale 2 [1_2 3_4]
14
⍤⟜≍: "xyzracadxyzra" Replace "ab" "abracadabra" "xyz"
15
⍤⟜≍: "yyyxxzyyy" Replace "xxx" "xxxxxzxxx" "yyy"
0 commit comments