This HTML5 document contains 12 embedded RDF statements represented using HTML+Microdata notation.

The embedded RDF content will be recognized by any processor of HTML5 Microdata.

PrefixNamespace IRI
n5http://dbkwik.webdatacommons.org/nupedia/property/
dctermshttp://purl.org/dc/terms/
n7http://dbkwik.webdatacommons.org/ontology/
n6http://dbkwik.webdatacommons.org/resource/h7sXX3umvOb0njuESnLm0Q==
n3http://dbkwik.webdatacommons.org/encyclopedianupedia/property/
n13http://dbkwik.webdatacommons.org/resource/rYtKSVrRjkTbcNWdjLCSyQ==
n2http://dbkwik.webdatacommons.org/resource/aH1ZcrIU3zetvI6p6_S1YA==
n9http://dbkwik.webdatacommons.org/resource/uAbK6RkFDyNpwOArQswYqQ==
n4http://dbkwik.webdatacommons.org/resource/n0pcuoBfahvpiTuA1z5uRw==
rdfshttp://www.w3.org/2000/01/rdf-schema#
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n14http://dbkwik.webdatacommons.org/resource/KYaii5Ah-EMQaS_poSkD4Q==
owlhttp://www.w3.org/2002/07/owl#
xsdhhttp://www.w3.org/2001/XMLSchema#
dbrhttp://dbpedia.org/resource/
Subject Item
n2:
rdfs:label
Functional Programming Functional programming
rdfs:comment
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)}"); 2 курса лекций по функциональному программированию * Александр Кубенский * Евгений Кирпичёв Category theory foundations
owl:sameAs
dbr:Functional_programming
dcterms:subject
n9: n14:
n3:wikiPageUsesTemplate
n4: n13:
n5:wikiPageUsesTemplate
n6:
n7:abstract
2 курса лекций по функциональному программированию * Александр Кубенский * Евгений Кирпичёв Category theory foundations 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)}");