Rebol 编程/select
外观
< Rebol 编程
SELECT series value /part range /only /case /any /with wild /skip size
在序列中查找值并返回其后的值或序列。
SELECT 是一个动作值。
- series -- (类型:序列对象端口)
- value -- (类型:任何类型)
- /part -- 将搜索限制为给定的长度或位置。
- range -- (类型:数字序列端口)
- /only -- 将序列值视为单个值。
- /case -- 字符区分大小写。
- /any -- 启用 * 和 ? 通配符。
- /with -- 允许自定义通配符。
- wild -- 指定 * 和 ? 的替代项 (类型:字符串)
- /skip -- 将序列视为固定大小的记录
- size -- (类型:整数)
select: native[
{Finds a value in the series and returns the value or series after it.}
series [series! object! port!]
value [any-type!]
/part "Limits the search to a given length or position."
range [number! series! port!]
/only "Treats a series value as a single value."
/case "Characters are case-sensitive."
/any "Enables the * and ? wildcards."
/with "Allows custom wildcards."
wild [string!] "Specifies alternates for * and ?"
/skip "Treat the series as records of fixed size"
size [integer!]
]