. . "2 \u043A\u0443\u0440\u0441\u0430 \u043B\u0435\u043A\u0446\u0438\u0439 \u043F\u043E \u0444\u0443\u043D\u043A\u0446\u0438\u043E\u043D\u0430\u043B\u044C\u043D\u043E\u043C\u0443 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044E \n* \u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440 \u041A\u0443\u0431\u0435\u043D\u0441\u043A\u0438\u0439 \n* \u0415\u0432\u0433\u0435\u043D\u0438\u0439 \u041A\u0438\u0440\u043F\u0438\u0447\u0451\u0432 Category theory foundations"@en . . "This is a simple example about using functions as parameters. function reduce(f: function(Number,Number):Number, list: Number[], nilArg: Number):Number { if( list == [] ) then nilArg else f( list[0], reduce(f, list[x|indexof x > 0], nilArg)) } function sum( x: Number, y: Number ): Number { x + y } function product( x: Number, y: Number ): Number {x * y } def list : Number[] = [1,2,3,4]; function p( s: String ) { println( s ); } p(\"# sum : {reduce(sum,list,0)}\"); p(\"# product : {reduce(product,list,1)}\");"@en . "2 \u043A\u0443\u0440\u0441\u0430 \u043B\u0435\u043A\u0446\u0438\u0439 \u043F\u043E \u0444\u0443\u043D\u043A\u0446\u0438\u043E\u043D\u0430\u043B\u044C\u043D\u043E\u043C\u0443 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044E \n* \u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440 \u041A\u0443\u0431\u0435\u043D\u0441\u043A\u0438\u0439 \n* \u0415\u0432\u0433\u0435\u043D\u0438\u0439 \u041A\u0438\u0440\u043F\u0438\u0447\u0451\u0432 Category theory foundations"@en . "This is a simple example about using functions as parameters. function reduce(f: function(Number,Number):Number, list: Number[], nilArg: Number):Number { if( list == [] ) then nilArg else f( list[0], reduce(f, list[x|indexof x > 0], nilArg)) } function sum( x: Number, y: Number ): Number { x + y } function product( x: Number, y: Number ): Number {x * y } def list : Number[] = [1,2,3,4]; function p( s: String ) { println( s ); } p(\"# sum : {reduce(sum,list,0)}\"); p(\"# product : {reduce(product,list,1)}\");"@en . "Functional Programming"@en . . "Functional programming"@en . . .