>From your example it seems that you want to count quantity of specified items 
>in seq. You can do this easily with `sequtils.countIt`:
    
    
    import std/sequtils
    echo c1.content.countIt(it.food == true) # 3
    
    
    Run

If you don't need a count and only want to check if item is present - use 
`sequtils.anyIt`:
    
    
    import std/sequtils
    echo c1.content.anyIt(it.food == true) # true
    
    
    Run

Reply via email to