⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 each

📁 C实现的MUD,对大家基本入门网络游戏很有帮助!
💻
字号:
     eeeeaaaacccchhhh((((3333))))                MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444))))                 eeeeaaaacccchhhh((((3333))))     NNNNAAAAMMMMEEEE          each() - iterate over the (key, value) pairs in a mapping     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS          mixed *each( mapping m, int reset );     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN          The (key, value) pairs in a mapping may be iterated over          using the each() efun.  each() returns the (key, value)          pairs in the same order as keys() and values() do.  each()          returns a null vector when the end of the mapping is          reached.  The next access to each() (after receiving the          null vector) will start over at the beginning of the map.          The current position in the map always resets to the          beginning when a different object accesses the map via          each().  Given the singlethreaded nature of MudOS, this          doesn't present a problem (and in fact makes sure that an          object can't leave the current position in an in-between          state).  If the optional second argument is given as 1, then          each()'s position in mapping `m' is reset to the beginning.          For example:               mixed *pair;               while ((pair = each(x)) != ({})) {                 write("key   = " + pair[0] + "\n");                 write("value = " + pair[1] + "\n");               }     SSSSEEEEEEEE AAAALLLLSSSSOOOO          keys(3), values(3)     Page 1                                          (printed 3/16/95)

⌨️ 快捷键说明

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