2022-12-01 13:41:49 +01:00
|
|
|
|
IsAsciiNum ⇐ ('0'⊸≤∧≤⟜'9')
|
2022-12-23 15:28:48 +01:00
|
|
|
|
IsAlpha ⇐ (('a'⊸≤∧≤⟜'z')∨('A'⊸≤∧≤⟜'Z'))
|
2022-12-01 13:41:49 +01:00
|
|
|
|
|
2022-12-10 21:24:06 +01:00
|
|
|
|
# based on leah2's function
|
|
|
|
|
ReadInt ⇐ {
|
|
|
|
|
𝕨 𝕊 𝕩: '-'=⊑𝕩? -𝕨 𝕊 1↓𝕩;
|
|
|
|
|
𝕨 𝕊 𝕩: (𝕨⊸×+⊣)´∘⌽-⟜'0'𝕩
|
|
|
|
|
}
|
2022-12-01 13:41:49 +01:00
|
|
|
|
ReadDec ⇐ 10⊸ReadInt
|
|
|
|
|
|
|
|
|
|
SplitOn ⇐ ((⊢ (-1˙)⍟⊣¨ +`∘(1⊸»<⊢))∘(≡¨)⊔⊢)
|
2022-12-07 20:13:45 +01:00
|
|
|
|
SplitAt ← ((⊣≤↕∘≠∘⊢)⊔⊢)
|
2022-12-01 13:41:49 +01:00
|
|
|
|
|
|
|
|
|
_fix ⇐ {𝕩 𝕊∘⊢⍟≢ 𝔽 𝕩}
|
2022-12-13 14:56:07 +01:00
|
|
|
|
|
|
|
|
|
ImportBqnLibs ⇐ {•Import 𝕩∾˜"/"∾˜¯1↓1⊑•SH "printenv"‿"BQNLIBS"}
|
2022-12-18 16:56:32 +01:00
|
|
|
|
|
|
|
|
|
Xor ⇐ (¬⊸∧∨∧⟜¬)
|