perhaps `immutable.IndexedSeq` as the api type?