abrudz / aplcart

A novel approach to finding your way in APL
https://aplcart.info/
Other
133 stars 18 forks source link

Please add conversions between text formats #76

Closed abrudz closed 2 years ago

abrudz commented 4 years ago

CV vs CM vs NV:

CMtoNV←{(+/∨\' '≠⌽⍵)↑¨↓⍵}
NVtoCM←↑
CMtoCV←{1↓(,1,⌽∨\⌽' '≠⍵)/,⍵,⍨⎕UCS 10}
CVtoCM←⎕FMT(⎕UCS 13)@{⍵=⎕UCS 10}
NVtoCV←{¯1↓∊⍵,¨⎕UCS 10}
CVtoNV←(⎕UCS 10)∘(1↓¨,⊂⍨⊣=,)