graph-store: no need to iterate through whole list if we find a single duplicate
++ check-for-duplicates
|= [=graph:store nodes=(set index:store)]
^- ?
- =/ has-duplicates %.n
=/ node-list ~(tap in nodes)
|-
- ?~ node-list
- has-duplicates
- =. has-duplicates
- |(has-duplicates (has-node graph i.node-list))
+ ?~ node-list %.n
+ ?: (has-node graph i.node-list) %.y
$(node-list t.node-list)
::
++ has-node
