public static ICachedBlob <string> toStringBlob( this ICachedBlob <byte[]> blob, Encoding encoding = null ) => blob.bimap(BiMapper.byteArrString(encoding));
public ICachedBlobMapper(ICachedBlob <A> backing, BiMapper <A, B> bimap) { this.backing = backing; this.bimap = bimap; }
public static ICachedBlob <B> bimap <A, B>( this ICachedBlob <A> blob, BiMapper <A, B> bimap ) => new ICachedBlobMapper <A, B>(blob, bimap);
public ICachedBlobTestBiMap() { blob = new ICachedBlobTestImpl <int>(); mappedBlob = blob.bimap(BiMapper.a <int, string>(i => i.ToString(), int.Parse)); }