/// <summary> /// Atomically filter out items that return false when a predicate is applied /// </summary> /// <param name="pred">Predicate</param> /// <returns>New map with items filtered</returns> public static Map <K, V> filter <K, V>(Map <K, V> map, Func <K, V, bool> predicate) => map.Filter(predicate);
public State(Map <ProcessName, ClusterNode> members, IActorSystem system) { Members = members.Filter(node => node != null); System = system; }
public State(Map <ProcessName, ClusterNode> members) { Members = members.Filter(node => node != null); }