diff options
| author | ThePrimeAgain <theprimeagain@theprimeagain.com> | 2025-12-30 08:26:45 -0700 |
|---|---|---|
| committer | ThePrimeAgain <theprimeagain@theprimeagain.com> | 2025-12-30 08:26:45 -0700 |
| commit | a6a88b75d92ef236980b73102108d1fd758169d1 (patch) | |
| tree | a66e8732a8569a255e40e7453d838537483fcdb1 /scratch | |
| parent | a84da6482b1fd3893748eb866d6ce5cff2843d17 (diff) | |
| download | a4-a6a88b75d92ef236980b73102108d1fd758169d1.tar.xz a4-a6a88b75d92ef236980b73102108d1fd758169d1.zip | |
working visual selection.
Diffstat (limited to 'scratch')
| -rw-r--r-- | scratch/refresh.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scratch/refresh.lua b/scratch/refresh.lua index f4c81c7..42ba7e4 100644 --- a/scratch/refresh.lua +++ b/scratch/refresh.lua @@ -4,13 +4,13 @@ function fizz_buzz(count) local result = {} for i = 1, count do if i % 15 == 0 then - vim.list_extend(result, { "FizzBuzz" }) + table.insert(result, "FizzBuzz") elseif i % 3 == 0 then - vim.list_extend(result, { "Fizz" }) + table.insert(result, "Fizz") elseif i % 5 == 0 then - vim.list_extend(result, { "Buzz" }) + table.insert(result, "Buzz") else - vim.list_extend(result, { tostring(i) }) + table.insert(result, i) end end return result |
