mapOf($maps->pairOf(1, "A"), $maps->pairOf(2, "B")); // 不可变 Map 无法修改 //m->put(3, "C") //m->put(4, "D") //m->put(5, "E") $objectWrappers->wrap($m)->forEach(function ($it) use ($console) { $console->log($it); });