Advertisement
Velinquish

Logic Puzzle #4 Solution

May 4th, 2020
1,976
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.16 KB | None | 0 0
  1. local function reverse(list)
  2.   for i = 1, math.floor(#list / 2) do
  3.     list[i], list[#list - i + 1] = list[#list - i + 1], list[i]
  4.   end
  5.   return list
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement