summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2017-11-29 01:01:33 -0500
committerOwen Jacobson <owen@grimoire.ca>2017-11-29 01:01:33 -0500
commit7e24ab85e56a1b9a8aab2c6dd3a701909ac76159 (patch)
tree910df56ec0e9762037c26a284f4c81b72773c386
parent93969125872358d896ca6125c08fe73d3e1e4483 (diff)
Add (concat strings…) builtin
-rw-r--r--actinide/stdlib.py4
-rw-r--r--docs/language.rst2
2 files changed, 4 insertions, 2 deletions
diff --git a/actinide/stdlib.py b/actinide/stdlib.py
index 2e8b6ac..0e4165d 100644
--- a/actinide/stdlib.py
+++ b/actinide/stdlib.py
@@ -85,3 +85,7 @@ def let(symbols, bindings, *body):
),
value
)
+
+@An.fn
+def concat(*strings):
+ return ''.join(strings)
diff --git a/docs/language.rst b/docs/language.rst
index 0296ec1..356b490 100644
--- a/docs/language.rst
+++ b/docs/language.rst
@@ -15,8 +15,6 @@ Forms
* A program is evaluated by *reducing* forms to produce a final value, applying
side effects during the reduction.
-* What does a form look like?
-
* Simple forms: literals (and intro to types)
* Integers: an optional leading - sign for negative numbers, followed by a