查看“LlDeleteSubList”的源代码
←
LlDeleteSubList
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} {{函数详情 |函数名 = Function: list llDeleteSubList( list src, integer start, integer end ); |参数= 参数: *list src – source *integer start – start index *integer end – end index |返回值= 返回值:Returns a list that is a copy of src but with the slice from start to end removed. |注意事项=*If either start or end are out of bounds the script continues to execute without an error message. *start & end will form an exclusion range when start is past end (Approximately: start > end). |示例= 示例1 src = llDeleteSubList( src, start, end ) default { state_entry() { // Create a list of names list names = ["Anthony", "Bob", "Charlie", "Diane", "Edgar", "Gabriela"]; // Now let's remove values at position 1 through 2. names = llDeleteSubList(names, 1, 2); // Result: // list names = ["Anthony", "Diane", "Edgar", "Gabriela"]; // Now let's use an start number higher then our end number names = llDeleteSubList(names, 3, 1); // Result: // list names = ["Edgar"]; // If start number higher then our end number, then we should imagine that the start and the end are missing before start and end. // Imagine it should be FROM_THE_LISTSTART_CUT: start, AND_FROM_THE_LISTEND_CUT: end ... more or less :)) // names = llDeleteSubList(names, 3 -> , <- 1); } } </pre> |相关函数= [[llListInsertList]] [[llListReplaceList]] [[llList2List]] |相关文章=[[Negative Index]] }}
该页面使用的模板:
模板:LSL Header
(
查看源代码
)
模板:LSLC
(
查看源代码
)
模板:LSLGC
(
查看源代码
)
模板:Multi-lang
(
查看源代码
)
模板:函数详情
(
查看源代码
)
返回至
LlDeleteSubList
。
导航菜单
个人工具
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
网站首页
知识百科
编辑帮助
最近更改
工具
链入页面
相关更改
特殊页面
页面信息