functors are used to implement generic data structures and algorithms bati mbese uyu mwana azaba iki nuko ukuboko iyo minsi itabaze y'imiruho uko guhangayikira ibintu