Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:

Rakib Fiha RakibFiha

:octocat:
View GitHub Profile
@RakibFiha
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