Ejemplo n.º 1
0
 public static HashMap <A, HashMap <B, T> > AddOrUpdate <A, B, T>(this HashMap <A, HashMap <B, T> > self, A outerKey,
                                                                  B innerKey, T value) =>
 self.AddOrUpdate(
     outerKey,
     b => b.AddOrUpdate(innerKey, _ => value, value),
     () => Prelude.HashMap(Tuple(innerKey, value))
     );
Ejemplo n.º 2
0
 public static HashMap <A, HashMap <B, T> > AddOrUpdate <A, B, T>(this HashMap <A, HashMap <B, T> > self, A outerKey,
                                                                  B innerKey, Func <T, T> Some, Func <T> None) =>
 self.AddOrUpdate(
     outerKey,
     b => b.AddOrUpdate(innerKey, Some, None),
     () => Prelude.HashMap(Tuple(innerKey, None()))
     );
Ejemplo n.º 3
0
 public static HashMap <A, HashMap <B, HashMap <C, T> > > AddOrUpdate <A, B, C, T>(
     this HashMap <A, HashMap <B, HashMap <C, T> > > self, A aKey, B bKey, C cKey, Func <T, T> Some, Func <T> None) =>
 self.AddOrUpdate(
     aKey,
     bKey,
     c => c.AddOrUpdate(cKey, Some, None),
     () => Prelude.HashMap(Tuple(cKey, None()))
     );
Ejemplo n.º 4
0
 public static HashMap <A, HashMap <B, HashMap <C, T> > > AddOrUpdate <A, B, C, T>(
     this HashMap <A, HashMap <B, HashMap <C, T> > > self, A aKey, B bKey, C cKey, T value) =>
 self.AddOrUpdate(
     aKey,
     bKey,
     c => c.AddOrUpdate(cKey, _ => value, value),
     () => Prelude.HashMap(Tuple(cKey, value))
     );