Lookup <TEntity, TKey, TValue>( this Lens <TEntity, IImmutableDictionary <TKey, TValue> > lens, TKey key, Func <TKey, TValue> defaultFactory) { return(lens.With(Lookup(key, defaultFactory))); }
public static Lens <TEntity, TValue> Location <TEntity, TValue>( this Lens <TEntity, IImmutableGrid <TValue> > self, int x, int y) { return(self.With(Location <TValue>(x, y))); }
Lookup <TType, TKey, TValue>( this Lens <TType, IImmutableDictionary <TKey, TValue> > lens, TKey key) { return(lens.With(Lookup <TKey, TValue>(key))); }
public static Lens <TEntity, TValue> Location <TEntity, TValue>( this Lens <TEntity, IImmutableGrid <TValue> > self, Vector location) { return(self.With(Location <TValue>(location.X, location.Y))); }