Funny fact is that I just discovered that we have

<https://nim-lang.org/docs/system.html#add%2Cseq%5BT%5D%2CopenArray%5BT%5D>

to add elements of an array to a seq. So I should be able to just write
    
    
    lcuts = v.vertex.neighbors - (lcuts.add([u.vertex, w.vertex]))
    
    
    Run

which is much better than adding the entities one by one for readability. And 
as add() should not allocate performance should be not bad.

I had yesterday the feeling that we have only add() procs for single elements 
but not for containers in the std lib. So maybe the initial post was indeed 
silly. I will ask my Mom next time before posting :-) 

Reply via email to