delegate bool MyDelegate(K k, T v);

bool myFunc(K k, T v, MyDelegate dg) { return find!((a, b) => a.numericCmp(b) == 0)(unique.values, dg) == unique.values.length).have!(key); }

bool stringCompare(K k, T v) { // implementation of string compare function }

// usage bool result = myFunc(k, v, &stringCompare);


原文地址: https://www.cveoy.top/t/topic/oiFP 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录