diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-10-23 10:59:44 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-10-23 10:59:44 -0400 |
| commit | a9094993c5dc359f021e22375936d990069012d8 (patch) | |
| tree | e097813a18ae2b7843acb6b878f33e7ea8127262 | |
| parent | cc3e3800831ecfbe5da8e572a52cbf6b71e08a6b (diff) | |
Always join lines of GEN output
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | md.bqn | 2 | ||||
| -rw-r--r-- | svg.bqn | 2 |
3 files changed, 3 insertions, 4 deletions
@@ -19,8 +19,7 @@ repl ← "div:cont" E ⟨ ⟩ "pre:rslt" E """B Q N""" ⟩ -repl∾↩<∾(""Enc˜"script"Attr"src"≍○<∾⟜".js")¨"bqn"‿"repl" -∾∾⟜(10+@)¨ repl +repl ∾< ∾(""Enc˜"script"Attr"src"≍○<∾⟜".js")¨"bqn"‿"repl" --> **BQN** is a new programming language in the APL lineage, which aims to remove irregular and burdensome aspects of the APL tradition and put the great ideas on a firmer footing. While its use demands a solid understanding of functions and multidimensional arrays, BQN's focus on providing simple, consistent, and powerful array operations (and documentation!) makes it a good language for learning array programming and building stronger array intuition. @@ -160,7 +160,7 @@ blobURL ← repoURL∾"/blob/master/" # Environments _getCodeExec ← {𝕗⋄⍎} -_getSvgExec ← {𝕗⋄⟨"svg.bqn","⍎"⟩ •Import "dzref"} +_getSvgExec ← {𝕗⋄JoinLines⍟(1<≡)∘(⟨"svg.bqn","⍎"⟩ •Import "dzref")} ################################ @@ -43,5 +43,5 @@ Pos ← ⟨"x","y"⟩ ≍˘ FmtNum¨ Elt ← Void∘Attr SVG ← { - (∾∾⟜(10+@)¨)⍟IsLines ("svg" Attr ⟨"viewBox",Fmt 𝕨⟩) Enc 𝕩 + ("svg" Attr ⟨"viewBox",Fmt 𝕨⟩) Enc 𝕩 } |
