QueryBuilder.TakeWhile<'T,'Q> 方法 (F#)
查詢運算子,只要指定的條件為 true,就會從序列中選取項目,然後略過其餘項目。
Namespace/Module Path:Microsoft.FSharp.Linq
組件:FSharp.Core (在 FSharp.Core.dll 中)
// Signature:
member this.TakeWhile : QuerySource<'T,'Q> * ('T -> bool) -> QuerySource<'T,'Q>
// Usage:
queryBuilder.TakeWhile (source, predicate)
參數
source
型別: QuerySource<'T,'Q>輸入查詢。
predicate
型別:" T " - > bool若要測試項目的布林函式。
傳回值
已截斷的查詢。
備註
如需詳細資訊和範例,請參閱 查詢運算式 (F#)。
平台
Windows 8 中, Windows 7, Windows Server 2012 上, Windows Server 2008 R2
版本資訊
F# 核心程式庫版本
支援版本:4.0,可攜式執行檔 (PE)。