aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-10-23 10:59:44 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-10-23 10:59:44 -0400
commita9094993c5dc359f021e22375936d990069012d8 (patch)
treee097813a18ae2b7843acb6b878f33e7ea8127262
parentcc3e3800831ecfbe5da8e572a52cbf6b71e08a6b (diff)
Always join lines of GEN output
-rw-r--r--README.md3
-rw-r--r--md.bqn2
-rw-r--r--svg.bqn2
3 files changed, 3 insertions, 4 deletions
diff --git a/README.md b/README.md
index 8439d75d..faa76be0 100644
--- a/README.md
+++ b/README.md
@@ -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.
diff --git a/md.bqn b/md.bqn
index fed4d855..eb99527e 100644
--- a/md.bqn
+++ b/md.bqn
@@ -160,7 +160,7 @@ blobURL ← repoURL∾"/blob/master/"
# Environments
_getCodeExec ← {𝕗⋄⍎}
-_getSvgExec ← {𝕗⋄⟨"svg.bqn","⍎"⟩ •Import "dzref"}
+_getSvgExec ← {𝕗⋄JoinLines⍟(1<≡)∘(⟨"svg.bqn","⍎"⟩ •Import "dzref")}
################################
diff --git a/svg.bqn b/svg.bqn
index aaabb205..1f2dc7b7 100644
--- a/svg.bqn
+++ b/svg.bqn
@@ -43,5 +43,5 @@ Pos ← ⟨"x","y"⟩ ≍˘ FmtNum¨
Elt ← Void∘Attr
SVG ← {
- (∾∾⟜(10+@)¨)⍟IsLines ("svg" Attr ⟨"viewBox",Fmt 𝕨⟩) Enc 𝕩
+ ("svg" Attr ⟨"viewBox",Fmt 𝕨⟩) Enc 𝕩
}