Array#<<

来源:互联网 发布:大数据标签体系 编辑:程序博客网 时间:2024/05/05 10:05
require "PP"
a = [1, 2] << "c" << "d" << [3, 4]
PP::pp a #[1, 2, "c", "d", [3, 4]]