Module:User:Erutuon/lang stuff/map/documentation

Hello, you have come here looking for the meaning of the word Module:User:Erutuon/lang stuff/map/documentation. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:User:Erutuon/lang stuff/map/documentation, but we will also tell you about its etymology, its characteristics and you will know how to say Module:User:Erutuon/lang stuff/map/documentation in singular and plural. Everything you need to know about the word Module:User:Erutuon/lang stuff/map/documentation you have here. The definition of the word Module:User:Erutuon/lang stuff/map/documentation will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:User:Erutuon/lang stuff/map/documentation, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

Neater way to work with data modules with string keys, similar to Module:array.

-- Get data tables for languages with transliteration modules.
local Map = require("Module:User:Erutuon/lang stuff/map")

local has_transliteration_module = Map:new(require 'Module:languages/data/2')
	:filter(function (data) return data.translit_module ~= nil end)

-- Create list of their canonical names and codes.
has_transliteration_module
	:map(function (data, code) return ("%s (%s)"):format(data, code) end)
	:values() -- Returns array from Module:array.
    :sort()
	:concat(", ")
--> "Abkhaz (ab), Amharic (am), Arabic (ar), Armenian (hy), Assamese (as), Avar (av), Avestan (ae), Bashkir (ba), Belarusian (be), Bengali (bn), Bulgarian (bg), Burmese (my), Chechen (ce), Chuvash (cv), Cree (cr), Dhivehi (dv), Dzongkha (dz), Georgian (ka), Greek (el), Gujarati (gu), Hindi (hi), Inuktitut (iu), Javanese (jv), Kannada (kn), Kashmiri (ks), Kazakh (kk), Khmer (km), Korean (ko), Kurdish (ku), Kyrgyz (ky), Lao (lo), Macedonian (mk), Malayalam (ml), Marathi (mr), Mongolian (mn), Nepali (ne), Old Church Slavonic (cu), Odia (or), Ossetian (os), Punjabi (pa), Russian (ru), Sanskrit (sa), Sichuan Yi (ii), Sinhalese (si), Sundanese (su), Tajik (tg), Tamil (ta), Tatar (tt), Telugu (te), Thai (th), Tibetan (bo), Tigrinya (ti), Ukrainian (uk), Uyghur (ug), Yiddish (yi)"