diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-08-12 21:20:16 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-08-12 21:20:16 -0400 |
| commit | 77b40d3ec3904846d9167d49b19bc7790b4fc84a (patch) | |
| tree | 26b3a721636162f246b8d319488dff0a5af0117a /src | |
| parent | b3577ac65fd5ae9fc3c59e9c85053afa97b8314a (diff) | |
Non-pervasive Reverse and Rotate definitions
Diffstat (limited to 'src')
| -rw-r--r-- | src/r.bqn | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -120,6 +120,9 @@ SelSubβ{ }π© } +Reverse β {!1β€=π© β lββ π© β ((l-1)βΈ-ββl) Select π©} +Rot β {!Intπ¨ β lββ π© β π¨-β©lΓβπ¨Γ·l β ((π¨+β’-lΓ(l-π¨)β€β’)ββl) Select π©} + _under_β{ iββlβ1ΓΒ΄sββ’π© vββ₯π¨π½βπΎπ© @@ -275,14 +278,11 @@ Windowsβ{ π¨{(βΎβ(π¨β βΈββ’π©)ββ’β₯>)<ββΈββπ©Β¨s(Β¬+ββRangeβ’)β₯π¨}β(0<β π¨)π© } -Reverse β {!1β€=π© β (-ββΈΒ¬β π©)βπ©} -Rotate β {!Intπ¨ β lββ π©β(l|π¨+βl)βπ©} _onAxes_ 0 - Rep β IndicesβΈβ Replicate β {0<=π¨}βΆ{π¨ββΈRepπ©}βΏ{!π¨=ββ π©βπ¨Repπ©} _onAxes_ (1-0=β ) β β© Range β Windows -β½ β Reverse β Rotate +β½ β Reverse β (Rot _onAxes_ 0) / β Indices β Replicate Joinβ(1β =)βΆβ¨β¨Β΄1β =β,1β©βΆ{ |
