To specify an int variable for an iterator and a String variable for element name, use the code in Listing 17.
要为迭代器指定一个int变量并为元素名称指定一个String变量,请使用清单17中的代码。
2
The call to filter converts the string that is passed as its second argument to a piece of code, which it then applies to each element of the list that is passed as its first argument.
Listing 22 is a modified version of code originally provided by Sam Ruby that takes the JSON serialization of an Atom text construct or content element and converts it back into a string.