MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / uniquePreds

Function uniquePreds

query/query.go:2007–2018  ·  view source on GitHub ↗
(list []string)

Source from the content-addressed store, hash-verified

2005}
2006
2007func uniquePreds(list []string) []string {
2008 predMap := make(map[string]struct{})
2009 for _, item := range list {
2010 predMap[item] = struct{}{}
2011 }
2012
2013 preds := make([]string, 0, len(predMap))
2014 for pred := range predMap {
2015 preds = append(preds, pred)
2016 }
2017 return preds
2018}
2019
2020func recursiveCopy(dst *SubGraph, src *SubGraph) {
2021 dst.Attr = src.Attr

Callers 1

expandSubgraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected