conjunction
ds2.1.1/lib/doc/sefun/conjunction · 1.1 KB
From the archive ds2.1.1.zip
Download the archive « Back to the archive contents
CONJUCTION(1) CONJUCTION(1)
NNAAMMEE
_c_o_n_j_u_n_c_t_i_on_(_) - connects words, phrases or clauses with a
coordinator.
SSYYNNOOPPSSIISS
varargs string conjunction(mixed expressions,
string coordinator)
DDEESSCCRRIIPPTTIIOONN
Given a number of words, or groups of words, that are used
the same way in a sentence, this function returns a string
which joins them using a coordinator such as and, but, or
or nor. The first argument is the group of words that are
to be joined. The second argument is the coordinator used
to join them. The coordinator defaults to "and".
EEXXAAMMPPLLEESS
+o conjunction(({"a frog", "twelve trees",
"some whip cream"}))
returns "a frog, twelve trees and some whip cream"
+o conjunction(({"Descartes", "Blitz"}),
"and obviously")
returns "Descartes and obviously Blitz"
/secure/SimulEfun/english.c
AAuutthhoorr
Rush
1