We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f043b65 + c0db601 commit cc816f5Copy full SHA for cc816f5
src/content/developers/docs/data-structures-and-encoding/patricia-merkle-trie/index.md
@@ -55,7 +55,7 @@ The update and delete operations for radix tries can be defined as follows:
55
newindex = delete(curnode[path[0]],path[1:])
56
newnode[path[0]] = newindex
57
58
- if len(filter(x -> x is not NULL, newnode)) == 0:
+ if all(x is NULL for x in newnode):
59
return NULL
60
else:
61
db.put(hash(newnode),newnode)
0 commit comments