« first day (2 days earlier)    last day (1809 days later) » 

Prefix, postfix, or infix?
...
command then args, args then command, or arg command arg
<command><args> is prefix (command = pre/before args)
<args><command> is postfix (post/after)
I know the difference, I'm just not sure which one V is.
It will probably be postfix once I add mathematical functions, but right now it doesn't have any.
okay
so how to print output?
Do you know vim?
23:08
yes sorta
Okay. Underneath the hood, it IS vim.
Actually, neovim
so most of the commands are the same.
Whoops, wrong link.
what does d and w do?
w = write
d = ?
@DrGreenEggsandHamDJ
'd' is the command "delete". 'w' is a motion, "word"
okay
so delete the first item and word the second?
what does word do?
Word moves forward one word, unless it's the argument to a command.
In this case, d takes an argument, 'w'
Any motion works as an argument to 'd'. For example, 'd$', 'd/foo', 'db', 'de'
oh
so delete the word motion?
And then implicitly output the last item on the stack or such?
or not that
It's an infinite 2d array of strings though, not a stack.
And the starting value is the input.
23:14
so [...,'', '', <input1>,<input2>...]
Whoops, not quite.
It's finite, but you can add an arbitrary number of new lines.
cool
so newline separates input is V or TIO?
If you want to learn more, type vimtutor into your terminal.
thanks for starting the lessons!
Yeah, no probs!
@DrGreenEggsandHamDJ cool command
BAYIASDADASDASDAADSAASDA7
@DrGreenEggsandHamDJ do you play nethack?
It uses the vim keys to move.
23:31
@EᴀsᴛᴇʀʟʏIʀᴋ no, I don't although I've been meaning to. That's cool. =D
@EᴀsᴛᴇʀʟʏIʀᴋ I suppose now that I think about it, it's definitely prefix. It's just weird to think of it that way since commands are only dyads or monads, and most command links won't be more than 3 or 4 commands long.
The longest one I can think of is 4: 3diw
@DrGreenEggsandHamDJ oh okay
Wait, no there's a longer one: "a3diw
Or hey, you could even do ģregex/ń"a3diw

« first day (2 days earlier)    last day (1809 days later) »