basic prototype of ifmapj Scala wrapper