Skip to content

Instantly share code, notes, and snippets.


Rakib Fiha RakibFiha

View GitHub Profile
RakibFiha / is_unique.lua
Last active Oct 17, 2020
Find if a string has unique characters in Lua with Set implementation
View is_unique.lua
#!/usr/bin/env lua
local lib = require "lib"
local totable = lib.totable
local Set = lib.Set
local tablelength = lib.tablelength
local contains = lib.contains
-- isuniqe function implementation
-- print(isuniqe("aabc")) -- would return false