Browse Source

Added luajit interp lines to the other 2 lua examples.

zinobias 2 years ago
parent
commit
1385babdfb
2 changed files with 2 additions and 0 deletions
  1. 1 0
      examples/lua/sorting.lua
  2. 1 0
      examples/lua/symmetric_difference.lua

+ 1 - 0
examples/lua/sorting.lua

@@ -1,3 +1,4 @@
+#!/usr/bin/env luajit
 fruits = {"banana","orange","apple","grapes"}
 fruits = {"banana","orange","apple","grapes"}
 
 
 for k,v in ipairs(fruits) do
 for k,v in ipairs(fruits) do

+ 1 - 0
examples/lua/symmetric_difference.lua

@@ -1,3 +1,4 @@
+#!/usr/bin/env luajit
 A = { ["John"] = true, ["Bob"] = true, ["Mary"] = true, ["Elena"] = true }
 A = { ["John"] = true, ["Bob"] = true, ["Mary"] = true, ["Elena"] = true }
 B = { ["Jim"] = true, ["Mary"] = true, ["John"] = true, ["Bob"] = true }
 B = { ["Jim"] = true, ["Mary"] = true, ["John"] = true, ["Bob"] = true }