Skip to content

Commit e378f2c

Browse files
authored
Add update-with method to Map (#161)
1 parent ad1e79a commit e378f2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

basilisp/lang/map.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ def update(self, *maps) -> "Map":
149149
m: PMap = self._inner.update(*maps)
150150
return Map(m)
151151

152+
def update_with(self, merge_fn, *maps) -> "Map":
153+
m: PMap = self._inner.update_with(merge_fn, *maps)
154+
return Map(m)
155+
152156
def _cons(self, *entries) -> "Map":
153157
try:
154158
e = self._inner.evolver()

0 commit comments

Comments
 (0)