Found a workaround:

1
2
3
4
5
6
selected.Lens 
    (fun x -> x) 
    (fun _ newVal -> 
         match newVal with
         | Some newVal when all |> List.exists ((=) newVal) -> Some newVal
         | _ -> None)

I'm not sure what behavior is better by default though.

By on 12/22/2015 1:30 AM ()
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