打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Select - Function Summary

Select - Function Summary

Summary:

Finds a value in the series and returns the value or series after it.

Usage:

select series value

Arguments:

series - The series argument. (must be: series port) 

value - The value argument. (must be: any-type) 

Refinements:

/part - Limits the search to a given length or position. 

range - The range argument. (must be: 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 - Specifies alternates for * and ? (must be: string) 

/skip - Treat the series as records of fixed size 

size - The size argument. (must be: integer) 

Description:

Similar to the FINDfunction, but returns the next value in the series rather than the position of the match. Returns NONE if search failed. 

The /ONLY refinement is evaluated for a block argument and is ignored if the argument is a string. 

    blk: [red 123 green 456 blue 789]

    print select blk 'red

    123

    weather: [

        "Ukiah"      [clear 78 wind from NW at 5 MPH]

        "Santa Rosa" [overcast 65 wind from N at 10 MPH]

        "Eureka"     [rain 62 wind from N at 15 MPH]

    ]

    probe select weather "Eureka"

    [rain 62 wind from N at 15 MPH]

Related:

find - Finds a value in a series and returns the series at the start of it.

switch - Selects a choice and evaluates what follows it.

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Function-Call Conversions
Python内置函数map、reduce、filter
rollout.io
Lua Generic Call
jQuery Ajax 方法调用 Asp.Net WebService 的详细例子
js代码还原,中文字符转unicode
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服