pic_sym should be unsigned
move map/for-each to pair.c