Sha256: efacc3c339cd6f74d16dc14dcc0ad1cf7150441ddaa56c5f88bd03e59cb54a62
Contents?: true
Size: 506 Bytes
Versions: 222
Compression:
Stored size: 506 Bytes
Contents
" " Greet someone or something! " " If no argument is given, return 'Hello, World!'. " If the optional argument is given, greet that name instead. " " Hint: If you're confused by the first line in the function, " read `:help a:0`. " " It also uses the short if-then-else syntax which is " called ternary operator in other languages: " " condition ? true : false " function! Hello(...) abort let name = (a:0 == 1 ? a:1 : 'World') " your implementation goes here endfunction
Version data entries
222 entries across 222 versions & 1 rubygems