From 7e24ab85e56a1b9a8aab2c6dd3a701909ac76159 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 29 Nov 2017 01:01:33 -0500 Subject: Add (concat strings…) builtin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- actinide/stdlib.py | 4 ++++ docs/language.rst | 2 -- 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 -- cgit v1.2.3