diff --git a/doc/simulated/implode_nicely b/doc/simulated/implode_nicely new file mode 100644 index 0000000000000000000000000000000000000000..987810eca7860051dbec33ea801ba648edc36378 --- /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 84e3d3254dd4a2070f3c4504030c27ae41b66e57..38940c9ba99a2e34e0bdb24924442cdcb1bfbbf6 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 0000000000000000000000000000000000000000..931dfdf54d7cc88a550b22b884125e5869122930 --- /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