concept addition in category probabilistic programming

This is an excerpt from Manning's book Practical Probabilistic Programming.
Figure 1.7 illustrates the relationship between probabilistic programming systems and probabilistic reasoning systems in general. The figure can be compared with figure 1.3 to highlight the differences between the two systems. The main change is that models are expressed as programs in a programming language rather than as a mathematical construct like a Bayesian network. As a result of this change, evidence, queries, and answers all apply to variables in the program. Evidence might specify particular values for program variables, queries ask for the values of program variables, and answers are probabilities of different values of the query variables. In addition, a probabilistic programming system typically comes with a suite of inference algorithms. These algorithms apply to programs written in the language.
Collections are one of the most useful features of high-level programming languages, because they let you organize many items of the same type and treat them as a group. For example, if you’re working with lots of integers, you can put them in an array and then write a loop to go through all entries in the array, multiply them by 2, and add them. Or, in functional programming terms, you can write a map function to multiply every entry in the array by 2 and a fold function to perform the addition. The same holds for probabilistic programming; if you have many variables of the same type, you can put them in a collection and operate on them with functions such as map and fold.