-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: teach format to handle lists
Format now distributes over lists. See the doc changes for details. As a colleague commented: "It happens all the time that we want a set of outputs, but in a slightly different way than just simple joining or concatting." Teaching format about lists (combined with join) makes it easy to satisfy those needs. This will change the behavior of format if anyone is currently using it with lists of length > 1, but the current behavior in that case is so unusual that I doubt anyone is using it, and if they are, it is probably a bug. It is also not documented as being supported. (It currently prefixes to the first element of the list whatever is in the first half of the formatted string and appends to the last element of the list whatever is in the second half of the formatted string.)
- Loading branch information
Showing
3 changed files
with
91 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters