of stings.
輸入是 一 個字串陣列。 • returns a Hash as lookup table.
回傳 一 個Hash 查找表。 • No ambiguous pre fi x in the lookup table.
表裡 面 沒有會對到不同字串的 pre fi x Abbrev.abbrev(%w{ install update upgrade }) # => {"install"=>"install", "instal"=>"install", "insta"=>"install", "inst"=>"install", "ins"=>"install", "in"=>"install", "i"=>"install", "update"=>"update", "updat"=>"update", "upda"=>"update", "upd"=>"update", "upgrade"=>"upgrade", "upgrad"=>"upgrade", "upgra"=>"upgrade", "upgr"=>"upgrade", "upg"=>"upgrade"}