From 222f27585fce8348414b566854ddd3595ec8b69f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Fri, 1 Nov 1996 15:54:31 -0800
Subject: [PATCH] new functions

Rev: doc/simulated/implode_nicely:1.1
Rev: doc/simulated/read_file:1.2
Rev: doc/simulated/uniq:1.1
---
 doc/simulated/implode_nicely | 27 +++++++++++++++++++++++++++
 doc/simulated/read_file      |  2 +-
 doc/simulated/uniq           | 14 ++++++++++++++
 3 files changed, 42 insertions(+), 1 deletion(-)
 create mode 100644 doc/simulated/implode_nicely
 create mode 100644 doc/simulated/uniq

diff --git a/doc/simulated/implode_nicely b/doc/simulated/implode_nicely
new file mode 100644
index 0000000000..987810eca7
--- /dev/null
+++ b/doc/simulated/implode_nicely
@@ -0,0 +1,27 @@
+NAME
+	implode_nicely - make an english comma separated list
+
+SYNTAX
+	#include <string.h>
+
+	string implode_nicely(string *words, string|void separator)
+
+DESCRIPTION
+	This function implodes a list of words to a readable string.
+	If the separator is omitted, the default is 'and'.
+
+EXAMPLES
+	> implode_nicely(({"green"}));
+	Result: green
+	> implode_nicely(({"green","blue"}));
+	Result: green and blue
+	> implode_nicely(({"green","blue","white"}));
+	Result: green, blue and white
+	> implode_nicely(({"green","blue","white"}),"or");
+	Result: green, blue or white
+
+KEYWORDS
+	string
+
+SEE ALSO
+	`*
diff --git a/doc/simulated/read_file b/doc/simulated/read_file
index 84e3d3254d..38940c9ba9 100644
--- a/doc/simulated/read_file
+++ b/doc/simulated/read_file
@@ -1,5 +1,5 @@
 NAME
-	read_bytes - read a number of lines into a string from file
+	read_file - read a number of lines into a string from file
 
 SYNTAX
 	#include <stdio.h>
diff --git a/doc/simulated/uniq b/doc/simulated/uniq
new file mode 100644
index 0000000000..931dfdf54d
--- /dev/null
+++ b/doc/simulated/uniq
@@ -0,0 +1,14 @@
+NAME
+	uniq - return one of each element
+
+SYNTAX
+	#include <array.h>
+
+	array uniq(array a);
+
+DESCRIPTION
+	This function returns an copy of the array a with all duplicate
+	values removed. The order of the values in the result is undefined.
+
+KEYWORDS
+	array
-- 
GitLab