keys

来自「C实现的MUD,对大家基本入门网络游戏很有帮助!」· 代码 · 共 33 行

TXT
33
字号
     kkkkeeeeyyyyssss((((3333))))                MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444))))                 kkkkeeeeyyyyssss((((3333))))     NNNNAAAAMMMMEEEE          keys() - return an array of the keys from the (key, value)          pairs in a mapping     SSSSYYYYNNNNOOOOPPPPSSSSYYYYSSSS          mixed *keys( mapping m );     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN          keys() returns an array of keys (indices) corresponding to          the keys in the (key, value) pairs stored in the mapping m.          For example, if:               mapping m;               m = (["hp" : 35, "sp" : 42, "mass" : 100]);          then               keys(m) == ({"hp", "sp", "mass"})          Note: the keys will not be returned in any apparent order.          However, they will be returned in the same order as the          corresponding values (returned by the values() efun).     SSSSEEEEEEEE AAAALLLLSSSSOOOO          values(3), each(3)     Page 1                                          (printed 3/16/95)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?