Hi,

Sequence expressions without a 'seq' prefix are deprecated (because of ambiguity with workflows syntax).

The backpipe operator is defined like this:

1
let inline (<|) f x = f x

So, it does "nothing" but it has a quite low precedence. It's sometimes used to remove parenthesis:

1
2
3
4
5
printfn "1 + 1 = %d" <| 1 + 1

Array.init 10 <| fun x ->
    if x < 5 then 0
    else x

You might also be interested by this discussion: [link:cs.hubfs.net] (now, I fully agree that the associativity change should be done).

By on 10/5/2008 3:05 PM ()

Thank you LLB,
That clears things up for me.

By on 10/5/2008 4:09 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper