This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[<CompiledName("Scan")>] | |
let scan<'T,'State> f (z:'State) (source : seq<'T>) = | |
checkNonNull "source" source | |
let f = OptimizedClosures.FSharpFunc<_,_,_>.Adapt(f) | |
seq { let zref = ref z | |
yield !zref | |
use ie = source.GetEnumerator() | |
while ie.MoveNext() do | |
zref := f.Invoke(!zref, ie.Current) | |
yield !zref } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Windows.System; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
using Windows.UI.Xaml.Input; | |
class KeyWatchTextBox : TextBox | |
{ | |
public event EventHandler WatchKeyPressed; |
NewerOlder