sjl / learnvimscriptthehardway

Home Page:http://learnvimscriptthehardway.stevelosh.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In chapter 35, the reader is asked to run a command which is not later discussed

jrib opened this issue · comments

In chapter 35, the reader is asked to run this command:

:echo join(foo)
:echo join(foo, '---')
:echo join([1, 2, 3], '')

The book goes on to say that:

Vim displays "a b" and "a---b". join will join the items in the given list together into a string, separated by the given separator string (or a space if none is given), coercing each item to a string if necessary/possible.

but does not mention "123" (the output of the third command).

This got fixed at some point.