• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

Search results

  1. fuad

    anagram string

    function anagrams(a, b) a1 = {} for i = 1, #a do --3times for j=1,#a do --3,3,8 t = string.sub(a,j,j) -- i try to do that, but ,, how to complete if -- ? print(t) end end end end a = {"tee" , "waa" ,"simplefo"} b =...
  2. fuad

    anagram string

    if i need to check if the array is anagram or if both array are anagram i just but each letter in a first array in hash with key that is the number of how much it in the index and check from the other array if the first index in the hash.. her i do'nt know from where to start cuz there is no...
  3. fuad

    Attempt to call global 'winners' (a table value)

    yes you are right
  4. fuad

    Attempt to call global 'winners' (a table value)

    hi all i hope if some one can help me, i am new with lua and i try to understand what going on with my simple code this is my code function win(classMates , winners) res = {} for i=1,#winners do for j=1,#classMates do print(3) if winners ==...
Top