toPredicate

fun toPredicate(): (ItemStack) -> Boolean