Small puzzler

31 views
Skip to first unread message

Nikolay Aleksandrovich Pavlov

unread,
Oct 2, 2017, 6:51:55 PM10/2/17
to vim...@googlegroups.com
Hello, I have a small puzzler for you: describe all messages which the
below code may possibly yield depending on what you substitute for `^`
and `^^`, assuming that first may only be either zero or one and
second may only be a dictionary {}, dictionary {'a': 1} or number 2.

(Preferably do this without actually running, there are only six
combinations under given conditions after all.)

:function Foo(...)
: let cond = ^
: let dict = ^^
: echo cond?dict.a:0|echo 3
:endfunction
:call Foo()
Reply all
Reply to author
Forward
0 new messages