[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-760744-105":59,"doc-detail-760744-en":130,"doc-similar-760744":293},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","programming-in-standard-ml-working-draft-march-25-2001","Programming in Standard ML - Working Draft March 25, 2001","","An introduction to programming with the Standard ML language, originating as lecture notes for Carnegie Mellon University’s CS 15-212. It explains the language as formally defined, supported by the Standard ML Basis Library, and discusses design decisions through commentary and commentary sections. Covers major topics including the core language, types and effects, declarations, functions, products and records, case analysis, recursion, type inference, lists, concrete datatypes, and higher-order functions, along with exceptions, mutable storage, and input/output.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/programming-in-standard-ml-working-draft-march-25-2001/760744/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/programming-in-standard-ml-working-draft-march-25-2001/760744.png","ImageObject",300,407,{"name":92,"@type":93},"Asher","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-11-28",true,{"@type":102,"interactionType":103,"userInteractionCount":8},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the purpose of this book on Standard ML?","Question",{"text":112,"@type":113},"It serves as an introduction to programming in the Standard ML language, building on lecture notes used in multiple courses.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How is Standard ML characterized in the preface?",{"text":117,"@type":113},"Standard ML is described as a formally defined programming language, with a formal definition complemented by the Basis Library.",{"name":119,"@type":110,"acceptedAnswer":120},"What major topics are included in the contents?",{"text":121,"@type":113},"The book spans overview material and core-language concepts such as types and effects, functions, records, case analysis, recursion, type inference, lists, exceptions, mutable storage, I/O, and lazy structures.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},760744,1795908965,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":8,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":145,"preview_urls":146},687197207639,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","Programming in Standard ML  \n(WORKING DRAFT OF MARCH 25, 2001.)  \nRobert Harper Carnegie Mellon University  \nSpring Semester, 2001  \nCopyright °c1997, 1998, 1999, 2000, 2001 .  \nAll Rights Reserved.  \nPreface  \nThis book is an introduction to programming with the Standard ML programming language. It began life as a set of lecture notes for Computer Science 15–212: Principles of Programming, the second semester of the introductory sequence in the undergraduate computer science curriculum at Carnegie Mellon University. It has subsequently been used in many other courses at Carnegie Mellon, and at a number of universities around the world. It is intended to supersede my Introduction to Standard ML, which has been widely circulated over the last ten years.  \nStandard ML is a formally deﬁned programming language. The Deﬁnition of Standard ML (Revised) is the formal deﬁnition of the language. It is supplemented by the Standard ML Basis Library, which deﬁnes a common basis of types that are shared by all implementations of the language. Commentary on Standard ML discusses some of the decisions that went into the design of the ﬁrst version of the language.  \nThere are several implementations of Standard ML available for a wide variety of hardware and software platforms. The best-known compilers are Standard ML of New Jersey, Moscow ML, MLKit, and PolyML. These are all freely available on the worldwide web. Please refer to The Standard ML Home Page for up-to-date information on Standard ML and its implementations.  \nNumerous people have contributed directly and indirectly to this text. I am especially grateful to the following people for their helpful comments and suggestions: Franck van Breugel, Karl Crary, Mike Erdmann, Matthias Felleisen, Joel Jones, John Lafferty, Frank Pfenning, Chris Stone, Dave Swasey, Johan Wallen, and Jeannette Wing. I am also grateful to the many students of 15-212 who used these notes and sent in their suggestions over the years.  \nThese notes are a work in progress. Corrections, comments and suggestions are most welcome.  \nWORKING DRAFT MARCH 25, 2001  \nContents  \nPreface iii  \nI Overview 1  \n1 Programming in Standard ML 5  \n1.1 A Regular Expression Package ................. 5  \n1.2 Sample Code ............................ 13  \nII The Core Language 19  \n2 Types, Values, and Effects 23  \n2.1 Evaluation and Execution .................... 23  \n2.2 The ML Computation Model .................. 24  \n2.2.1 Type Checking ...................... 25  \n2.2.2 Evaluation ......................... 27  \n2.3 Types, Types, Types ........................ 28  \n2.4 Type Errors ............................. 30  \n3 Declarations 33  \n3.1 Variables .............................. 33  \n3.2 Basic Bindings ........................... 34  \n3.2.1 Type Bindings ....................... 34  \n3.2.2 Value Bindings ...................... 34  \n3.3 Compound Declarations ..................... 36  \n3.4 Limiting Scope ........................... 37  \n3.5 Typing and Evaluation ...................... 38  \nWORKING DRAFT MARCH 25, 2001  \n4 Functions 41  \n4.1 Functions as Templates ...................... 41  \n4.2 Functions and Application .................... 42  \n4.3 Binding and Scope, Revisited .................. 45  \n5 Products and Records 49  \n5.1 Product Types ........................... 49  \n5.1.1 Tuples ........................... 49  \n5.1.2 Tuple Patterns ....................... 51  \n5.2 Record Types ........................... 54  \n5.3 Multiple Arguments and Multiple Results ........... 56  \n6 Case Analysis 59  \n6.1 Homegeneous and Heterogeneous Types ........... 59  \n6.2 Clausal Function Expressions .................. 60  \n6.3 Booleans and Conditionals, Revisited ............. 61  \n6.4 Exhaustiveness and Redundancy ................ 62  \n7 Recursive Functions 65  \n7.1 Self-Reference and Recursion .................. 66  \n7.2 Iteration .............................. 69  \n7.3 Inductive Reasoning ....................... 70  \n7.4 Mutual Recursion ...","cbCailic6uRwWoPe","https://ap.wps.com/l/cbCailic6uRwWoPe","pdf",1008926,315,"English","# Preface\n# I Overview\n## 1 Programming in Standard ML\n## 1.1 A Regular Expression Package\n## 1.2 Sample Code\n# II The Core Language\n## 2 Types, Values, and Effects\n## 3 Declarations\n## 4 Functions\n## 5 Products and Records\n## 6 Case Analysis\n## 7 Recursive Functions\n## 8 Type Inference and Polymorphism\n## 9 Programming with Lists\n## 10 Concrete Data Types\n## 11 Higher-Order Functions\n## 12 Exceptions\n## 13 Mutable Storage\n## 14 Input/Output\n## 15 Lazy Data Structures","[{\"question\":\"What is the purpose of this book on Standard ML?\",\"answer\":\"It serves as an introduction to programming in the Standard ML language, building on lecture notes used in multiple courses.\"},{\"question\":\"How is Standard ML characterized in the preface?\",\"answer\":\"Standard ML is described as a formally defined programming language, with a formal definition complemented by the Basis Library.\"},{\"question\":\"What major topics are included in the contents?\",\"answer\":\"The book spans overview material and core-language concepts such as types and effects, functions, records, case analysis, recursion, type inference, lists, exceptions, mutable storage, I/O, and lazy structures.\"}]","Programming in Standard ML - Working Draft March 25, 2001 | PDF",794,32,[147,151,155,159,163,167,171,175,179,183,187,192,197,202,207,212,217,222,227,231,235,240,245,250,255,260,265,270,275,280,284,289],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/86eec91b05aabae0e7825867774c0549.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/603fdf96cdd297f44b645227274f1022.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/ed25caa1c30b0d91812f1b01797d43b5.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/2826756d6363ac53f2d6e18ec4349f77.webp",980,1268,{"page_no":24,"url":164,"width":165,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/d5a237db81b2ed420834e40c9e11af8f.webp",979,1267,{"page_no":29,"url":168,"width":169,"height":170},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/4fe4aae83de8f7e0f44be7d320c10504.webp",978,1265,{"page_no":34,"url":172,"width":173,"height":174},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/c904db5b22aa45c77f562f3a1bd7ade8.webp",977,1264,{"page_no":39,"url":176,"width":177,"height":178},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/24263209b1c2f314c9fdc83c335acd9f.webp",976,1263,{"page_no":44,"url":180,"width":181,"height":182},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/74caedd08417bd25872e6eea2b5380f0.webp",975,1261,{"page_no":52,"url":184,"width":185,"height":186},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/37fa569a256d5e82706e2b4a556d996a.webp",974,1260,{"page_no":188,"url":189,"width":190,"height":191},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/af532736f073f76c0f54303405836c8f.webp",973,1259,{"page_no":193,"url":194,"width":195,"height":196},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/d65bd317650446ce2a6423bb447b3aca.webp",972,1257,{"page_no":198,"url":199,"width":200,"height":201},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/5d14d213c147ecfada93c6a245ddd309.webp",971,1256,{"page_no":203,"url":204,"width":205,"height":206},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/f78387af4e229a676458bfceee2f3265.webp",970,1255,{"page_no":208,"url":209,"width":210,"height":211},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/2267379058b2ab3cbbbf081164cb0d71.webp",969,1254,{"page_no":213,"url":214,"width":215,"height":216},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/a572d47e456e3c15fe469bc063bbe590.webp",968,1252,{"page_no":218,"url":219,"width":220,"height":221},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/01b33b4a5acc07770555f3dbfac5a6fb.webp",967,1251,{"page_no":223,"url":224,"width":225,"height":226},18,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/ba7e1b8f9b0e330e0c7594f76d5eea1a.webp",966,1250,{"page_no":56,"url":228,"width":229,"height":230},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/d3bb1ae8fe1800a327e6914f0f09d076.webp",965,1248,{"page_no":46,"url":232,"width":233,"height":234},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/e408b5bba34e62c990074eb9d53d0cf1.webp",964,1247,{"page_no":236,"url":237,"width":238,"height":239},21,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/92c21226a01ac1116e82634b94fabf65.webp",963,1246,{"page_no":241,"url":242,"width":243,"height":244},22,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/6a2f0a75118003f1bd4237eb32366c52.webp",962,1245,{"page_no":246,"url":247,"width":248,"height":249},23,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/23ad6bf35df6fd5906b1f7e1b89eaec4.webp",961,1243,{"page_no":251,"url":252,"width":253,"height":254},24,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/46e44ee70f1a0e3f38afdd2af22efe57.webp",960,1242,{"page_no":256,"url":257,"width":258,"height":259},25,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/0015889856f8f7079464a7fbe8d10d6b.webp",959,1241,{"page_no":261,"url":262,"width":263,"height":264},26,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/b3ffbdfc0879687f27e0f805df86271e.webp",958,1239,{"page_no":266,"url":267,"width":268,"height":269},27,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/be551641fb735b54de2bacbcc455306e.webp",957,1238,{"page_no":271,"url":272,"width":273,"height":274},28,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/be43c5b5c6f1d8b84d1d4351788c59d6.webp",956,1237,{"page_no":276,"url":277,"width":278,"height":279},29,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/8c39d32a6008fb9b1588efefd27f35dd.webp",955,1235,{"page_no":41,"url":281,"width":282,"height":283},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/5355b515c900cfd0804dc3ee5a48472b.webp",954,1234,{"page_no":285,"url":286,"width":287,"height":288},31,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/5182b977abcd53999f5f2d3c87196beb.webp",953,1233,{"page_no":145,"url":290,"width":291,"height":292},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/b12768a0693ef26c689d78d7fd1b966d.webp",952,1232,{"list":294,"token":66},[295,301,307,313,320,326,332,338,344,350],{"doc_id":296,"doc_title":297,"file_type":137,"home_preview_img_url":298,"slug":299,"view_count":19,"category_name":30,"create_tm":300},685640,"Programming Language Principles and Paradigms - Release 0.4 - Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999084377/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=%2BVgXo%2Bg%2BTlL4N9Y6zzldcoatX7c%3D","programming-language-principles-and-paradigms-release-04-notes",1794016120,{"doc_id":302,"doc_title":303,"file_type":137,"home_preview_img_url":304,"slug":305,"view_count":223,"category_name":30,"create_tm":306},347399,"C - Book 2nd - C Programming Language Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911501551/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=qglB7NjNyN6LzYT4vtEp131gEms%3D","c-book-2nd-c-programming-language-guide",1790066784,{"doc_id":308,"doc_title":309,"file_type":137,"home_preview_img_url":310,"slug":311,"view_count":193,"category_name":30,"create_tm":312},310908,"Cybersecurity - Course Descriptions - Los Angeles City College","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907546043/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=vxwZRqW3t33pMtHjcJcfSB3B2fk%3D","cybersecurity-course-descriptions-los-angeles-city-college",1789891514,{"doc_id":314,"doc_title":315,"file_type":137,"home_preview_img_url":316,"slug":317,"view_count":318,"category_name":30,"create_tm":319},347398,"PROGRAMMING IN “C” - MCA 101 - Lecture Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911501616/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=en72sSInqeuV1o9wacZUVmCnbdc%3D","programming-in-c-mca-101-lecture-notes",34,1790066783,{"doc_id":321,"doc_title":322,"file_type":137,"home_preview_img_url":323,"slug":324,"view_count":34,"category_name":30,"create_tm":325},670917,"Python 3 Cheat Sheet - concise reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988704071/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=VPw3xpZDO8r2ogUR%2BZzFv4J27DI%3D","python-3-cheat-sheet-concise-reference",1793572698,{"doc_id":327,"doc_title":328,"file_type":137,"home_preview_img_url":329,"slug":330,"view_count":34,"category_name":30,"create_tm":331},652814,"The Isabelle/Isar Reference Manual - interactive theorem proving","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229973817226/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=YSBxKFY1MtLY9CPrgYSY7o3cGGs%3D","the-isabelleisar-reference-manual-interactive-theorem-proving",1792882998,{"doc_id":333,"doc_title":334,"file_type":137,"home_preview_img_url":335,"slug":336,"view_count":44,"category_name":30,"create_tm":337},291156,"Programming from the Ground Up - Introductory Assembly and Programming Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903755637/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=%2BxvVmNY6TJ0gZ3opaH42TuGatf4%3D","programming-from-the-ground-up-introductory-assembly-and-programming-guide",1789643566,{"doc_id":339,"doc_title":340,"file_type":137,"home_preview_img_url":341,"slug":342,"view_count":19,"category_name":30,"create_tm":343},697386,"CLM and RTGS GUI Style Guide - Version 0.1 - Style guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009184542/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=kmlCy7JCl9mAALRq8ujgBLKGfj0%3D","clm-and-rtgs-gui-style-guide-version-01-style-guide",1794438244,{"doc_id":345,"doc_title":346,"file_type":137,"home_preview_img_url":347,"slug":348,"view_count":19,"category_name":30,"create_tm":349},740800,"SUNFLY CATALOG - KARAOKE SONGS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230039310740/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=2ntivTopbQNu6tKFBqiziebuVtA%3D","sunfly-catalog-karaoke-songs",1795657884,{"doc_id":351,"doc_title":352,"file_type":137,"home_preview_img_url":353,"slug":354,"view_count":19,"category_name":30,"create_tm":355},683395,"Washer-extractor Commissioning - Programme chart - Settings","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000036774/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=To0xVyhOqBnZRt2MTFDPx%2FGdivo%3D","washer-extractor-commissioning-programme-chart-settings",1793999513]