From 1f71c5202c3573871f9c37df26d62bd9ed255c0b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Thu, 25 May 2017 13:49:32 +0200
Subject: [PATCH] Make setting "set" also return the value
---
ell.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ell.c b/ell.c
index 101b59e..a73d0a4 100644
--- a/ell.c
+++ b/ell.c
@@ -898,6 +898,7 @@ defn (fn_set) {
struct item *value;
if ((value = name->next))
return check (ctx, (value = new_clone (value)))
+ && check (ctx, (*result = new_clone (value)))
&& set (ctx, name->value, value);
// We return an empty list for a nil value