CONSOLIDATE(1) CONSOLIDATE(1)
NNAAMMEE
_c_o_n_s_o_l_i_d_a_t_e_(_) - consolidates a string with a number
SSYYNNOOPPSSIISS
string consolidate(int x, string str)
DDEESSCCRRIIPPTTIIOONN
Given a number of singularly described items, this
function returns a string which describes them in the
plural, reflecting the number of them that exist. The
first argument is the number of things which have the same
singular description. The second argument is their
singular description.
EEXXAAMMPPLLEESS
+o consolidate(5, "a fish") returns "five fish"
+o consolidate(2, "a knight") returns "two knights"
head1 LOCATION
/secure/SimulEfun/english.c
SSEEEE AALLSSOO
_p_l_u_r_a_l_i_z_e_(_)
AAuutthhoorr
Descartes of Borg
1