csharpfftfsharpintegrationinterpolationlinear-algebramathdifferentiationmatrixnumericsrandomregressionstatisticsmathnet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
145 lines
12 KiB
145 lines
12 KiB
<HTML><HEAD><TITLE>Microsoft.FSharp.Collections.LazyList</TITLE><link rel="stylesheet" type="text/css"href="../msdn.css"></link></HEAD><BODY>
|
|
<br><dl>
|
|
<dt></dt><dd>
|
|
<h1>[<a href='../namespaces.html'>Home</a>] Module <a href='Microsoft.FSharp.Collections.html'>Microsoft.FSharp.Collections</a>.LazyList </h1><br>
|
|
</dd>
|
|
<dt></dt><dd>
|
|
<table>
|
|
<tr valign='top'><td>
|
|
<dt><h3>Values</h3></dt><dd>
|
|
<table width="100%%">
|
|
<tr><th width=60%>Value</th><th>Description</th></tr>
|
|
<tr valign="top"><td><pre>val append : <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T></pre></td><td><summary>
|
|
Return the stream which contains on demand the elements of the first stream followed
|
|
by the elements of the second list
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val combine :
|
|
<a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T1> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T2> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T1 * 'T2></pre></td><td><summary>
|
|
Return the stream which contains on demand the pair of elements of the first and second list
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val concat : <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><<a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T>> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T></pre></td><td><summary>
|
|
Return the stream which contains on demand the list of elements of the list of lazy lists.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val cons : 'T -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T></pre></td><td><summary>
|
|
Return a new stream which contains on demand the given item followed by the
|
|
given stream.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val consf : 'T -> (<a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T>) -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T></pre></td><td><summary>
|
|
Return a new stream which contains on demand the given item followed by the
|
|
stream returned by the given computation. The computation is
|
|
not executed until the elements of the stream are consumed. The
|
|
computation is only executed once.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val delayed : (<a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T>) -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T></pre></td><td><summary>
|
|
Return a stream that is in effect the stream returned by the given computation.
|
|
The given computation is not executed until the first element on the stream is
|
|
consumed.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val drop : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T></pre></td><td><summary>
|
|
Return the stream without the first 'n' elements of the given stream. Does
|
|
not force the evaluation of any cells in the stream.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val empty : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T></pre></td><td><summary>
|
|
Evaluates to the stream that contains no items
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val filter : ('T -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__bool.html'>bool</a>) -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T></pre></td><td><summary>
|
|
Return a new collection which on consumption will consist of only the elements of the collection
|
|
for which the given predicate returns "true"
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val find : ('T -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__bool.html'>bool</a>) -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> 'T</pre></td><td><summary>
|
|
Return the first element for which the given function returns <tt>true</tt>.
|
|
Raise <tt>KeyNotFoundException</tt> if no such element exists.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val first : ('T -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__bool.html'>bool</a>) -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> 'T <a href='../FSharp.Core/Microsoft.FSharp.Core.type__option-1.html'>option</a></pre></td><td><summary>
|
|
Apply the given function to successive elements of the list, returning the first
|
|
result where function returns <tt>Some(x)</tt> for some x. If the function never returns
|
|
true, 'None' is returned.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val folds :
|
|
('State -> 'T -> 'State) ->
|
|
'State -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'State></pre></td><td><summary>
|
|
Return a new stream consisting of the results of applying the given accumulating function
|
|
to successive elements of the stream
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val get : <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> ('T * <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T>) <a href='../FSharp.Core/Microsoft.FSharp.Core.type__option-1.html'>option</a></pre></td><td><summary>
|
|
Get the first cell of the stream.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val hd : <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> 'T</pre></td><td><summary>
|
|
Return the first element of the stream. Raise 'Invalid_argument "hd"' if the
|
|
stream is empty. Forces the evaluation of
|
|
the first cell of the stream if it is not already evaluated.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val map : ('T -> 'U) -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'U></pre></td><td><summary>
|
|
Build a new collection whose elements are the results of applying the given function
|
|
to each of the elements of the collection.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val map2 :
|
|
('T1 -> 'T2 -> 'U) ->
|
|
<a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T1> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T2> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'U></pre></td><td><summary>
|
|
Build a new collection whose elements are the results of applying the given function
|
|
to the corresponding elements of the two collections pairwise.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val nonempty : <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__bool.html'>bool</a></pre></td><td><summary>
|
|
Test if a stream contains at least one element. Forces the evaluation of
|
|
the first element of the stream if it is not already evaluated.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val of_array : 'T <a href='../FSharp.Core/Microsoft.FSharp.Core.type__array-1.html'>array</a> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T></pre></td><td><summary>
|
|
Build a collection from the given array. This function will eagerly evaluate all of the
|
|
stream (and thus may not terminate).
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val of_list : 'T <a href='../FSharp.Core/Microsoft.FSharp.Collections.type__list-1.html'>list</a> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T></pre></td><td><summary>
|
|
Build a collection from the given list. This function will eagerly evaluate all of the
|
|
stream (and thus may not terminate).
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val of_seq : <a href='../FSharp.Core/Microsoft.FSharp.Collections.type__seq-1.html'>seq</a><'T> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T></pre></td><td><summary>
|
|
Build a new collection from the given enumerable object
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val repeat : 'T -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T></pre></td><td><summary>
|
|
Return the stream which on consumption will consist of an infinite sequence of the given item
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val take : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T></pre></td><td><summary>
|
|
Return the stream which on consumption will consist of at most 'n' elements of
|
|
the given stream. Does not force the evaluation of any cells in the stream.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val tl : <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T></pre></td><td><summary>
|
|
Return the stream corresponding to the remaining items in the sequence.
|
|
Raise 'Invalid_argument "tl"' if the stream is empty. Forces the evaluation of
|
|
the first cell of the stream if it is not already evaluated.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val to_array : <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> 'T <a href='../FSharp.Core/Microsoft.FSharp.Core.type__array-1.html'>array</a></pre></td><td><summary>
|
|
Build an array from the given collection
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val to_list : <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> 'T <a href='../FSharp.Core/Microsoft.FSharp.Collections.type__list-1.html'>list</a></pre></td><td><summary>
|
|
Build a list from the given collection This function will eagerly evaluate all of the
|
|
stream (and thus may not terminate).
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val to_seq : <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> <a href='../FSharp.Core/Microsoft.FSharp.Collections.type__seq-1.html'>seq</a><'T></pre></td><td><summary>
|
|
Return a view of the collection as an enumerable object
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>val unfold : ('State -> ('T * 'State) <a href='../FSharp.Core/Microsoft.FSharp.Core.type__option-1.html'>option</a>) -> 'State -> <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T></pre></td><td><summary>
|
|
Return a stream that contains the elements returned by the given computation.
|
|
The given computation is not executed until the first element on the stream is
|
|
consumed. The given argument is passed to the computation. Subsequent elements
|
|
in the stream are generated by again applying the residual 'b to the computation.
|
|
</summary></td></tr>
|
|
|
|
</table>
|
|
</dd>
|
|
<dt><h3>Active Patterns</h3></dt><dd>
|
|
<table width="100%%">
|
|
<tr><th width=60%>Active Pattern</th><th>Description</th></tr>
|
|
<tr valign="top"><td><pre>val ( |Cons|Nil| ) :
|
|
<a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type_Choice-2.html'>Choice</a><('T * <a href='Microsoft.FSharp.Collections.type_LazyList-1.html'>LazyList</a><'T>),<a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a>></pre></td><td></td></tr>
|
|
|
|
</table>
|
|
</dd>
|
|
</td></tr>
|
|
<tr valign='top'><td>
|
|
<dt><h3>See Also</h3></dt><dd>
|
|
<a href="Microsoft.FSharp.Collections.html">Microsoft.FSharp.Collections</a> </dd>
|
|
</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<br /> <br/><p><i>Documentation for assembly FSharp.PowerPack, version 1.9.6.16, generated using <a href='http://research.microsoft.com/fsharp/'>F# Programming Language</a> version 1.9.6.16</i></p>
|
|
</BODY></HTML>
|
|
|