GNU bug report logs -
#35710
26.1; incomplete mapconcat description string
Previous Next
Reported by: phs <at> lsv.fr
Date: Mon, 13 May 2019 09:00:02 UTC
Severity: wishlist
Found in version 26.1
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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"
This bug report was last modified 5 years and 344 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.