all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#35710: 26.1; incomplete mapconcat description string
@ 2019-05-13  8:43 phs
  2019-05-13 12:02 ` Noam Postavsky
       [not found] ` <handler.35710.B.155773799422638.ack@debbugs.gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: phs @ 2019-05-13  8:43 UTC (permalink / raw)
  To: 35710


In my v26.1, the description string for mapconcat is

   mapconcat is a built-in function in ‘src/fns.c’.

   (mapconcat FUNCTION SEQUENCE SEPARATOR)

   Apply FUNCTION to each element of SEQUENCE, and concat the results as
strings.
   In between each pair of results, stick in SEPARATOR.  Thus, " " as
   SEPARATOR results in spaces between the values returned by FUNCTION.
   SEQUENCE may be a list, a vector, a bool-vector, or a string.

The description does not say what is accepted for SEPARATOR, it only
gives an example.

By playing around a bit, it turns out that SEPARATOR can be a string
(obviously), a list of chars, a vector of chars, the empty bool-vector
but not any other bool-vector.

It is not clear why these possibilities are offered while some are not
(e.g., why not make SEPARATOR optional?). This is one more reason to
make the description string explicit about what is allowed.
-- 
Philippe SCHNOEBELEN,       	
"Algebraic symbols are used when you do not know what you are talking about"





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-07 13:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-13  8:43 bug#35710: 26.1; incomplete mapconcat description string phs
2019-05-13 12:02 ` Noam Postavsky
2019-05-13 14:14   ` Eli Zaretskii
     [not found] ` <handler.35710.B.155773799422638.ack@debbugs.gnu.org>
2019-05-14  8:14   ` bug#35710: Acknowledgement (26.1; incomplete mapconcat description string) phs
2019-06-07 13:02     ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.