diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-10-16 22:27:53 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-10-16 22:27:53 -0400 |
| commit | 54b5e531d3526e7054e5ddc765bf0bcc32e8e521 (patch) | |
| tree | ca1a004f29b03df0cb08631582d135d6740012cc /examples/fifty.bqn | |
| parent | 116fbde94ec7d7f40dcb01150d80f01fc6675b43 (diff) | |
Replace tabs with spaces
Diffstat (limited to 'examples/fifty.bqn')
| -rw-r--r-- | examples/fifty.bqn | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/fifty.bqn b/examples/fifty.bqn index 34222304..db5bb4a5 100644 --- a/examples/fifty.bqn +++ b/examples/fifty.bqn @@ -98,7 +98,7 @@ Permutations ← {𝕊0:1‿0⥊0; ∾<˘(0∾˘1+𝕊𝕩-1)⊏⎉2‿1⍒˘= ! (6‿3⥊0‿1‿2‿0‿2‿1‿1‿0‿2‿1‿2‿0‿2‿0‿1‿2‿1‿0)≡Permutations 3 # 20 -InversePermutation ← ⍋ #Alternatively: ⊐⟜(↕≠) +InversePermutation ← ⍋ #Alternatively: ⊐⟜(↕≠) ! (↕10)≡InversePermutation⊸⊏1‿4‿5‿2‿6‿8‿3‿7‿0‿9 # 21 @@ -124,10 +124,10 @@ IndexFromCombination‿CombinationFromIndex ← { Ic ← {m‿n←𝕨 ⋄ ⊑-˝(m-↕m) +˝∘(C˘) n-(»1+𝕩)∾˘𝕩} Ci ← { 0‿i𝕊𝕩: ⟨⟩; - m‿n←𝕨 - v←⥊+`(m-1)C(1-m)↓⌽↕n - k←(v>𝕩)⊐1 - k∾(1+k)+(𝕨-1∾1+k)𝕊(𝕩-k⊏0∾v) + m‿n←𝕨 + v←⥊+`(m-1)C(1-m)↓⌽↕n + k←(v>𝕩)⊐1 + k∾(1+k)+(𝕨-1∾1+k)𝕊(𝕩-k⊏0∾v) } Ic‿Ci } |
