(array []interface{}, element interface{})
| 1732 | } |
| 1733 | |
| 1734 | func countElement(array []interface{}, element interface{}) int { |
| 1735 | count := 0 |
| 1736 | for _, e := range array { |
| 1737 | if reflect.DeepEqual(element, e) { |
| 1738 | count++ |
| 1739 | } |
| 1740 | } |
| 1741 | return count |
| 1742 | } |
| 1743 | |
| 1744 | func builtinComparator(opChain *chain, array []interface{}) func(x, y *Value) bool { |
| 1745 | var prev interface{} |
no outgoing calls
no test coverage detected
searching dependent graphs…