comparison Main/jungle-network/transaction/NetworkDefaultJungleTreeEditor.cs @ 33:56de71ae6f7e

Implementation of fmap.
author Kazuma Takeda
date Sat, 28 Jan 2017 19:12:18 +0900
parents 1466993c104c
children f2ea780b3e80
comparison
equal deleted inserted replaced
32:07318c10b894 33:56de71ae6f7e
101 { 101 {
102 PutAttribute putAttribute = new PutAttribute(_key,_value); 102 PutAttribute putAttribute = new PutAttribute(_key,_value);
103 return this.TreeEditor(_path, putAttribute); 103 return this.TreeEditor(_path, putAttribute);
104 } 104 }
105 105
106 public Either<Error,JungleTreeEditor> putAttribute(NodePath _path, object _value)
107 {
108 PutAttribute putAttribute = new PutAttribute(_value.ToString(), _value);
109 return this.TreeEditor(_path, putAttribute);
110 }
111
106 public Either<Error,JungleTreeEditor> putAttribute(string _key, object _value) 112 public Either<Error,JungleTreeEditor> putAttribute(string _key, object _value)
107 { 113 {
108 PutAttribute putAttribute = new PutAttribute(_key, _value); 114 PutAttribute putAttribute = new PutAttribute(_key, _value);
109 return this.TreeEditor(prevPath, putAttribute); 115 return this.TreeEditor(prevPath, putAttribute);
110 } 116 }