= new ArrayIterator(array('Margarita', 'Siciliana', 'Hawaii'));$toppings = new ArrayIterator(array('Cheese
varobject={cheese:'crumpets',stuff:function(){return'nonsense';}};_.result(object,'cheese');=>"crumpets
the_image=="parrot"){the_image_object=window.document.parrot;}else{the_image_object=window.document.cheese
示例 packagemainimport("fmt""strings")funcmain(){fmt.Println(strings.Count("cheese","e"))fmt.Println(strings.Count
示例 packagemainimport("bytes""fmt")funcmain(){fmt.Println(bytes.Count([]byte("cheese"),[]byte("e")))fmt.Println
旧式规格的例子: TagsDEFINITIONS::=BEGINAfters::=CHOICE{cheese[0]IA5String,dessert[1]IA5String}END 没有标签(方括号中的数字