[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-326688-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-326688-en":130},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","functional-programming-read-online-free","Functional Programming - read online free","","Comprehensive introduction to functional programming, explaining how computation is modeled through functions that map parameters (input) to results (output) rather than through imperative, sequential instructions. Establishes the conceptual shift from hardware-like programming languages to a style where a “program” is the definition of one or more functions. Discusses motivation for allowing freedom in execution order and contrasts functional style with imperative languages such as Pascal and C, beginning with the historical context of early programming.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/functional-programming-read-online-free/326688/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/functional-programming-read-online-free/326688.png","ImageObject",300,407,{"name":42,"@type":43},"Oliver","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-25","2026-09-21",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",9,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What defines functional programming in this document?","Question",{"text":63,"@type":64},"Functional programming is presented as a style where a program consists of defining functions, and computation is the evaluation of those functions on given parameters to produce results.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does the document contrast functional programming with imperative programming?",{"text":68,"@type":64},"It contrasts functional style with imperative languages like Pascal and C, which rely on sequential assignments and prescribed execution order, while functional programming treats results as dependent on inputs through function definitions.",{"name":70,"@type":61,"acceptedAnswer":71},"Why are functions considered a good way to specify computation?",{"text":72,"@type":64},"Because each computation’s result depends on parameters in a consistent way, functions provide a clear specification of the connection between input parameters and output results.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},326688,1790461765,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145,"preview_page_count":146,"preview_urls":147},8796095461610,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Functional Programming  \n􀀍c Copyright 1992{1995 Jeroen Fokker and  \nDepartment of Computer Science, Utrecht University  \nThis text may be reproduced for educational purposes under the following restrictions:  \n􀀏 the text will not be edited or truncated;  \n􀀏 especially this message will be reproduced too;  \n􀀏 the duplicates will not be sold for pro􀀌ts;  \nYou can reach the author at: Jeroen Fokker, Vakgroep Informatica, Postbus 80089, 3508 TB Utrecht, e-mail [jeroen@cs.ruu.nl](jeroen@cs.ruu.nl).  \nDutch edition:  \n1st print September 1992  \n2nd print February 1993  \n3rd reviewed print September 1993 4th reviewed print September 1994 5th reviewed print September 1995  \nSpanish edition, translated by Hielko Opho􀀋: based on 4th reviewed print September 1994  \nEnglish edition, translated by Dennis Gruijs and Arjan van IJzendoorn: based on 5th reviewed print September 1995  \niii  \nContents  \n1 Functional Programming 1  \n1.1 Functional Languages 1  \n1.1. 1 Functions 1  \n1.1.2 Languages 1  \n1.2 The Gofer-interpreter 2  \n1.2.1 Evaluating expressions 2  \n1.2.2 De􀀌ning functions 4  \n1.2.3 Internal commands 5  \n1.3 Standard functions 5  \n1.3.1 Primitive/prede􀀌ned 5  \n1.3.2 Names of functions and operators 6  \n1.3.3 Functions on numbers 7  \n1.3.4 Boolean functions 8  \n1.3.5 Functions on lists 8  \n1.3.6 Functions on functions 9  \n1.4 Function de􀀌nitions 9  \n1.4.1 De􀀌nition by combination 9  \n1.4.2 De􀀌nition by case distinction 10  \n1.4.3 De􀀌nition by pattern matching 11  \n1.4.4 De􀀌nition by recursion or induction 12  \n1.4.5 Layout and comments 13  \n1.5 Typing 14  \n1.5. 1 Kinds of errors 14  \n1.5.2 Prototyping of expressions 15  \n1.5.3 Polymorphism 16  \n1.5.4 Functions with more parameters 17  \n1.5.5 Overloading 17 Exercises 18  \n2 Numbers and functions 21  \n2. 1 Operators 21  \n2.1. 1 Operators as functions and vice versa 21  \n2.1.2 Priorities 21  \n2.1.3 Association 22  \n2.1.4 De􀀌nition of operators 23  \n2.2 Currying 23  \n2.2.1 Partial parametrization 23  \n2.2.2 Parentheses 24  \n2.2.3 Operator sections 24  \n2.3 Functions as a parameter 25  \n2.3. 1 Functions on lists 25  \n2.3.2 Iteration 26  \n2.3.3 Composition 27  \n2.3.4 The lambda notation 28  \n2.4 Numerical functions 28  \n2.4.1 Calculation with whole integers 28  \n2.4.2 Numerical di􀀋erentiating 30  \n2.4.3 Home-made square root 31  \n2.4.4 Zero of a function 32  \n2.4.5 Inverse of a function 33  \nExercises 34  \n3 Data structures 37  \n3. 1 Lists 37  \n3.1.1 Structure of a list 37  \n3.1.2 Functions on lists 38  \n3.1.3 Higher order functions on lists 42  \n3.1.4 Sorting lists 43  \n3.2 Special lists 45  \n3.2.1 Strings 45  \n3.2.2 Characters 45  \n3.2.3 Functions on characters and strings 46  \n3.2.4 In􀀌nite lists 48  \n3.2.5 Lazy evaluation 48  \n3.2.6 Functions on in􀀌nite lists 49  \n3.2.7 List comprehensions 51  \n3.3 Tuples 52  \n3.3.1 Use of tuples 52  \n3.3.2 Type de􀀌nitions 54  \n3.3.3 Rational numbers 54  \n3.3.4 Tuples and lists 55  \n3.3.5 Tuples and Currying 56  \n3.4 Trees 57  \n3.4.1 Datatype de􀀌nitions 57  \n3.4.2 Search trees 59  \n3.4.3 Special uses of data de􀀌nitions 62  \nExercises 63  \n4 List Algorithms 67  \n4. 1 Combinatorial Functions 67  \n4.1.1 Segments and sublists 67  \n4.1.2 Permutations and combinations 69  \n4.1.3 The @-notation 70  \n4.2 Matrix calculus 71  \n4.2.1 Vectors and matrices 71  \n4.2.2 Elementary operations 73  \n4.2.3 Determinant and inverse 77  \n4.3 Polynomials 79  \n4.3.1 Representation 79  \n4.3.2 Simpli􀀌cation 80  \n4.3.3 Arithmetic operations 82  \nExercises 83  \n5 Code transformation 85  \n5.1 E􀀎ciency 85  \n5.1. 1 Time 85  \n5.1.2 Complexity analysis 85  \n5.1.3 Improving e􀀎ciency 87  \n5.1.4 Memory usage 90  \n5.2 Laws 92  \n5.2.1 Mathematical laws 92  \n5.2.2 Gofer laws 94  \n5.2.3 Proving laws 94  \n5.2.4 Inductive proofs 96  \n5.2.5 Improving e􀀎ciency 98  \n5.2.6 properties of functions 101  \n5.2.7 Polymorphism 105  \n5.2.8 Proofs of mathematical laws 107 Exercises 110  \nA Exercises 113  \nA.1 Complex numbers 113  \nA.2 Texts 115  \nA.3 Formula manipulation 117  \nA.4 Predicate logic 119  \nA.5","cbCaijndrOe0Qjnx","https://ap.wps.com/l/cbCaijndrOe0Qjnx","pdf",736363,155,"English","# Functional Programming\n## Functional Languages\n## The Gofer-interpreter\n## Standard functions\n## Function definitions\n## Typing\n# Numbers and functions\n# Data structures\n# List Algorithms\n# Code transformation\n# Exercises\n## Complex numbers\n## Texts\n## Formula manipulation\n## Predicate logic\n## The class `Set'\n## ISO/ASCII table\n## Gofer manual page\n## Gofer standard functions\n## Literature\n## Answers","[{\"question\":\"What defines functional programming in this document?\",\"answer\":\"Functional programming is presented as a style where a program consists of defining functions, and computation is the evaluation of those functions on given parameters to produce results.\"},{\"question\":\"How does the document contrast functional programming with imperative programming?\",\"answer\":\"It contrasts functional style with imperative languages like Pascal and C, which rely on sequential assignments and prescribed execution order, while functional programming treats results as dependent on inputs through function definitions.\"},{\"question\":\"Why are functions considered a good way to specify computation?\",\"answer\":\"Because each computation’s result depends on parameters in a consistent way, functions provide a clear specification of the connection between input parameters and output results.\"}]","Functional Programming - read online free | PDF",1789975086,391,16,[148,152,156,160,164,168,172,176,180,184,188,193,198,203,208,213],{"page_no":22,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/9d59763f3ab6f0738b5d41389e3abcbd.webp",983,1390,{"page_no":26,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/ecb47dce3fbdfef408c853e637fce671.webp",982,1388,{"page_no":30,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/73293f1d5b724d72a3531092d72da7f5.webp",981,1387,{"page_no":33,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/08169d48f3b540414ae80fb6ba2563f0.webp",980,1385,{"page_no":97,"url":165,"width":166,"height":167},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/73e4927fe3b1be97183430e249f27091.webp",979,1384,{"page_no":102,"url":169,"width":170,"height":171},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/d0bf07e0cdbb51952584f98477b96d04.webp",978,1383,{"page_no":106,"url":173,"width":174,"height":175},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/cb739cc14e044efe7115f4e7c7331341.webp",977,1381,{"page_no":111,"url":177,"width":178,"height":179},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/139ab5852d8ac6ae1fee5f8a2542bd93.webp",976,1380,{"page_no":55,"url":181,"width":182,"height":183},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/341995a85eff594e6cc23e063fa72a63.webp",975,1378,{"page_no":123,"url":185,"width":186,"height":187},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/84adca8c3e3f21a9fe407323583d29c4.webp",974,1377,{"page_no":189,"url":190,"width":191,"height":192},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/e50cd57b972a92805d2488113ef41c03.webp",973,1376,{"page_no":194,"url":195,"width":196,"height":197},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/7f4852cea07102ed3564ecc6e12b961e.webp",972,1374,{"page_no":199,"url":200,"width":201,"height":202},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/f3b3e4b7f9a05ae2389b12891b9eed82.webp",971,1373,{"page_no":204,"url":205,"width":206,"height":207},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/58d66baf3af0055395d3bca29686a499.webp",970,1371,{"page_no":209,"url":210,"width":211,"height":212},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/5b44936b028ee8b8d933762681baec6e.webp",969,1370,{"page_no":146,"url":214,"width":215,"height":216},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/03c5224b8a0a0b4299ac234f09646785.webp",968,1369]