F# observable filter with side effect
问题 I have a number of events that are merged into one observable that executes some commands. If a command succeeded some result takes place. In addition, the command should be logged. In terms of code, this looks like let mevts = modifyingevents |> Observable.filter exec_action |> Observable.add (fun action -> self.OutlineEdited <- true) where the function exec_action results in some side effect such as editing a treeview. If this succeeded then the property OutlineEdited is set to true . I was