by ekimekim · 5y ago · 0 comments
[(.number|tostring), .title] | join(" | ")
I would write: "\(.number) | \(.title)"
which IMO is more readable in cases where you have specific values you want to put in specific places, as opposed to a list of unknown length which you want joined (eg. I would still use join("\n") in your example).I didn't know that one could build an arbitrary string like that inside a map.
Thanks a lot for that, I agree it looks better!