Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function reset()
- term.clear()
- term.setCursorPos(1,1)
- end
- function search(str,substr)
- return string.find(string.lower(str), substr)
- end
- function split_string(str)
- local t = {}
- for character in string.gmatch(str, ".") do
- table.insert(t, character)
- end
- return t
- end
- function t_find(t, s)
- return table.foreach(t, function(a,b)
- if b == s then
- return a
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement