s c h e m a t i c s : c o o k b o o k

/ WebHome / Cookbook.WebIndex

This Web


WebHome 
WebChanges 
TOC (with recipes)
NewRecipe 
WebTopicList 
WebStatistics 

Other Webs


Chicken
Cookbook
Erlang
Know
Main
Plugins
Sandbox
Scm
TWiki  

Schematics


Schematics Home
Sourceforge Page
SchemeWiki.org
Original Cookbook
RSS

Scheme Links


Schemers.org
Scheme FAQ
R5RS
SRFIs
Scheme Cross Reference
PLT Scheme SISC
Scheme48 SCM
MIT Scheme scsh
JScheme Kawa
Chicken Guile
Bigloo Tiny
Gambit LispMe
GaucheChez

Lambda the Ultimate
TWiki.org
Topics in Cookbook web: Changed: now 01:52 GMT Changed by:

AToBToC 07 Apr 2006 - 00:29 - r1.2 NoelWelsh
  STARTINCLUDE Circular Links with Continuations Problem You have a number of pages that all link to each other this is, the links form a cycle. You want to implement ...
AdminAnnotationProposal 19 May 2004 - 04:15 - r1.3 AntonVanStraaten
  Adding an Annotation Mechanism to TWiki The following outlines a possible way of implementing an annotation-based approach to maintaining cookbook content with TWiki ...
AdminCookbookViews 09 Jun 2004 - 15:40 - r1.9 NoelWelsh
  Supporting Multiple Views of the Cookbook At a minimum, we want to be able to support two "views" of the cookbook one which supports online browsing well, and another ...
AdminOverview 23 Aug 2004 - 08:17 - r1.6 AntonVanStraaten
  Cookbook Administration Issues This is a laundry list of things to think about, plan for, and/or do. Expand any significant points below into their own topics, as ...
AdminSourceHighlighting 22 Apr 2004 - 23:48 - NEW AntonVanStraaten
  Source Highlighting Integration The following diff documents the change made to TWiki.SyntaxHighlightingPlugin, to integrate the Sandbox.ScmToXexpr Scheme source ...
AdminTopics 19 May 2004 - 04:10 - NEW AntonVanStraaten
  Administration Topics These are topics related to Cookbook administration or site design. To appear in this list, a topic must have a TopicType of Admin on its CookbookForm ...
AligningStrings 08 Sep 2004 - 17:48 - r1.12 GordonWeakliem
  STARTINCLUDE Aligning Strings Problem You want to align a string, left, right, or center. You might use this when generating reports, for example. Solution The easiest ...
AllRecipes 19 May 2004 - 16:48 - r1.2 AntonVanStraaten
  List of All Recipes These are all topics which have a CookbookForm with a TopicType of Recipe . See also ParentTopics. This list is generated automatically. SEARCH ...
ApplicableHashTables 05 Feb 2008 - 16:47 - NEW DanielSilva
  STARTINCLUDE Applicable Hash Tables Problem You want to apply hash-table objects directly to look up or associate keys with values. Solution You can rely on structures ...
AtExpandTime 01 Oct 2005 - 07:51 - r1.3 NoelWelsh
  STARTINCLUDE A Macro Similar to CL's Eval-When Problem Often times it is useful to preload a table of data at compile-time. Scheme, however, has no construct similar ...
AuthorChapter 16 Aug 2004 - 14:37 - NEW NoelWelsh
  STARTINCLUDE Author Guide TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"AuthorChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
AuthorChapterComments 16 Aug 2004 - 14:42 - NEW NoelWelsh
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments STOPINCLUDE Main.NoelWelsh 16 Aug 2004
AuthorCreatingChapters 16 Jul 2007 - 07:53 - r1.3 NoelWelsh
  STARTINCLUDE Creating Chapters Problem You want to create a new Chapter in the Cookbook Solution Creating a new Chapter is not as simple as creating a recipe, as ...
AuthorEditingExistingText 20 Aug 2004 - 16:38 - r1.3 NoelWelsh
  Editing Existing Text There are many different types of editing, from fixing typos through adding comments to wholescale restructuring of pages. Always think about ...
AuthorFAQ 20 Aug 2004 - 19:00 - r1.3 GordonWeakliem
  Author FAQ TOC How do I rename or move a topic? Select the More link at the top of the topic you want to rename. The page that comes up has an option to "Rename/Move ...
AuthorGuide 20 Aug 2004 - 16:38 - r1.18 NoelWelsh
  Cookbook Authoring Guide This topic is under construction, now that we have a good sense of how the cookbook should be structured with Twiki. Topics that will be ...
AuthorIncludingRecipesInSections 16 Aug 2004 - 14:52 - r1.2 NoelWelsh
  Including Recipes in Sections At the bottom of every page is a form called the CookbookForm. The organisation of the site depends on the values in this form, so take ...
AuthorIntroduction 19 Aug 2004 - 15:55 - r1.2 NoelWelsh
  STARTINCLUDE Introduction This chapter covers the practices and conventions of contributing to the Cookbook. For ease of editing it is laid out like any other chapter ...
AuthorRecipes 16 Aug 2004 - 14:41 - NEW NoelWelsh
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
AuthorYouHavePermission 20 Aug 2004 - 12:41 - NEW NoelWelsh
  STARTINCLUDE You Have Permission Problem You want to make a change but your aren't sure if you'll offend someone by doing it. Solution Make the change. Change is ...
BecomingAnAuthor 16 Aug 2004 - 14:46 - r1.3 NoelWelsh
  Becoming An Author To become an author. visit TWiki.TWikiRegistration and fill out the registration form. Anyone can become a cookbook author, and contribute to the ...
BeingPltSpecific 10 Sep 2004 - 01:00 - r1.5 AntonVanStraaten
  TOC STARTINCLUDE Being PLT Specific The reality of Scheme today is that many of the kinds of tasks which the Cookbook is intended to address cannot easily be implemented ...
BookIntroduction 08 Sep 2004 - 05:14 - r1.9 AntonVanStraaten
  Introduction The Scheme Cookbook's primary aim is show how common programming problems can be solved in Scheme via short programming "recipes". Parts of the Cookbook ...
BugIESourceWrapping 17 May 2004 - 02:50 - NEW AntonVanStraaten
  Bug: Source code wrapping in IE There is a bug in IE which ruins the layout of receipes containing code with very long lines. An example is: AligningStrings. Previously ...
CGI 16 May 2004 - 21:13 - NEW JensAxelSoegaard
  CGI Scripts http://www.htus.org/Book/2001-11-13/howto-Z-H-17.html# part VI "CGI Scripts" in "How To Use Scheme"
CaseSensitivity 31 May 2007 - 23:14 - r1.4 MichalKwiatkowski
  STARTINCLUDE Case Sensitivity Problem This recipe gives solutions for dealing with case insensitive code in a case sensitive language and vice versa. Introduction ...
ChainedComparisons 03 Feb 2006 - 11:07 - r1.2 NoelWelsh
  STARTINCLUDE Chained Comparisons Problem We might like to use syntax to describe a sequence of "chained" comparisons like 3 which can be expressed in Scheme as: begin ...
ChapterStructure 14 Jun 2004 - 02:17 - NEW AntonVanStraaten
  Cookbook Chapter Structure TOC Introduction This is technical documentation of the Cookbook chapter structure. Documentation for authors will be based on the automated ...
CoRoutines 22 Apr 2009 - 16:37 - r1.34 JosKoot
  STARTINCLUDE Coroutines Problem In some cases it is desirable to transform a procedure that returns a table (a list, vector or list of lists and so on) into a procedure ...
CommonLispCookbook 16 Jul 2004 - 19:19 - NEW NoelWelsh
  A cookbook for Common Lisp, online at http://cl-cookbook.sourceforge.net/ Main.NoelWelsh 16 Jul 2004
CompilationCopyright 08 Sep 2004 - 09:07 - r1.3 AntonVanStraaten
  STARTINCLUDE Compilation Copyright As described in ContributorAgreement, while contributors retain the copyright to their own original material which is submitted ...
ContributorAgreement 08 Sep 2004 - 09:05 - r1.7 AntonVanStraaten
  STARTINCLUDE Contributor Agreement By submitting material to this Cookbook web site ("the Cookbook"), you are agreeing to the following terms: Material that you submit ...
CookBook 07 Jul 2004 - 10:15 - r1.14 NoelWelsh
  PLT Scheme Cookbook This page is temporarily out of service. See the TOC page instead. Main.AntonVanStraaten 03 May 2004 TOC{depth "2"} INCLUDE{"BookIntroduction ...
CookbookBrainStorm 16 Jul 2004 - 19:15 - r1.34 NoelWelsh
  Cookbook BrainStorm What should a cookbook contain? Add your ideas the list below. 1 Intro to (PLT) Scheme Link to Sitaram's FixnumDays Philosophy of the cookbook ...
CookbookFAQ 08 Sep 2004 - 07:11 - r1.9 AntonVanStraaten
  FAQ TOC Scheme portability Is the Cookbook PLT-specific? As little as possible. If we had the technology to support multiple Scheme implementations without making ...
CookbookForm 31 May 2004 - 01:13 - r1.4 AntonVanStraaten
  Cookbook Topic Classification Form Name Type Size Values Tooltip message TopicType select 1 Specifies the type of a topic that belongs in the Cookbook ParentTopic ...
CookbookStructure 14 Jun 2004 - 02:16 - r1.10 AntonVanStraaten
  Cookbook Structure Proposal TOC Note Below is the proposal for the new cookbook structure, written prior to implementation. The technical details of the final design ...
CreatingAiffs 15 Aug 2006 - 14:29 - NEW RitchieSmith
  STARTINCLUDE Creating simple AIFF audio files Problem DrScheme seems to have little support for sound. Solution Presented here, sample code for writing 16 bit monophonic ...
CreatingJpegWithMzScheme 07 Apr 2009 - 19:58 - r1.2 StephenDeGabrielle
  STARTINCLUDE Creating Jpeg from scratch using MzScheme Problem You are using PLT DrScheme and you want to draw graphs, generate graphics, or process images from scratch ...
CreatingRecipes 16 Aug 2004 - 14:45 - r1.5 NoelWelsh
  STARTINCLUDE Creating Recipes This page discusses both reasons for creating recipes and provides guidance on creating recipes. area. How To Create Recipes Use the ...
DataStructureChapter 16 Aug 2004 - 02:22 - r1.2 GordonWeakliem
  STARTINCLUDE Data Structures TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"DataStructureChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
DataStructureChapterComments 04 Nov 2005 - 17:22 - r1.4 AntonVanStraaten
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments A good library of data structures for Scheme is the Galore library (the link is to its entry in the PLT PLaneT package ...
DataStructureRecipes 16 Jun 2004 - 15:39 - NEW NoelWelsh
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
DataStructuresIntroduction 16 Jun 2004 - 15:38 - NEW NoelWelsh
  STARTINCLUDE Introduction There are many advanced data structures that have been implemented in Scheme. There datastructures have properties that sometimes make them ...
DatabaseChapter 20 Aug 2004 - 00:32 - r1.4 GordonWeakliem
  STARTINCLUDE Databases TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"DatabaseChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
DatabaseChapterComments 01 Jul 2008 - 05:36 - r1.3 AntonVanStraaten
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments WriteSqlInSchemeLikeSyntax: belongs here, but I did something wrong Main.HiSeeComments Fixed the parent topic ...
DatabaseIntroduction 19 Aug 2004 - 16:55 - NEW NoelWelsh
  STARTINCLUDE Introduction Relational databases, along with the file system and structured markup, are one of the primary means of storing and exchanging data between ...
DatabaseRecipes 19 Aug 2004 - 23:38 - r1.2 GordonWeakliem
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
DefaultArgumentsClassInitialization 05 Sep 2006 - 03:13 - NEW DannyYoo
  STARTINCLUDE Default field values for class initialization Problem You want to provide a set of reasonable default values for some fields in a class. Solution Use ...
DefaultChapterTemplate 14 Jun 2004 - 01:50 - r1.2 AntonVanStraaten
  STARTINCLUDE URLPARAM{"title"} TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"DefaultChapterTemplateComments"} Set ALLOWTOPICCHANGE Main ...
DefaultLibraryTemplate 01 Jul 2004 - 14:42 - NEW NoelWelsh
  STARTINCLUDE URLPARAM{"heading"} Location Description Discussion STOPINCLUDE Contributors WIKIUSERNAME DATE
DefaultRecipeTemplate 01 Jun 2004 - 21:13 - r1.4 AntonVanStraaten
  STARTINCLUDE URLPARAM{"heading"} Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors WIKIUSERNAME DATE
DisallowOneArmedIf 16 Nov 2006 - 11:38 - r1.2 NoelWelsh
  STARTINCLUDE Disallow One-Armed If with a Custom Language Problem It's idiomatic PLT Scheme to use WHEN and UNLESS if one wants to do a side-effect conditional. But ...
DrScheme 30 Mar 2004 - 00:48 - NEW AntonVanStraaten
  DrScheme DrScheme is a sophisticated graphical programming environment for Scheme. In addition to unrivalled program analysis tools, DrScheme includes a HelpDesk ...
DrawStairCaseGraphs 24 Jan 2007 - 22:55 - NEW DannyYoo
  STARTINCLUDE Draw staircase graphs with PLT's PLoT Problem It's not completely obvious how to draw staircase graphs in PLoT. Solution The idea is to turn the data ...
DynamicChapter 15 Apr 2005 - 14:20 - NEW NoelWelsh
  STARTINCLUDE Dynamic Programming TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"DynamicChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
DynamicChapterComments 02 Aug 2007 - 09:57 - r1.2 NoelWelsh
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments See StringEval in StringChapter for how to evaluate code stored in a string. STOPINCLUDE
DynamicEvalCustomNamespace 07 Jun 2006 - 15:26 - r1.5 DannyYoo
  STARTINCLUDE Evaluating Code in a Custom Namespace Problem You want to eval code that: Doesn't have access to anything declared or loaded by the code that calls eval ...
DynamicIntroduction 15 Apr 2005 - 14:34 - NEW NoelWelsh
  STARTINCLUDE Introduction Dynamic programming is a family of algorithms used to solve optimisation problems. Except in this case it isn't. We use the term dynamic ...
DynamicRecipes 15 Apr 2005 - 14:35 - NEW NoelWelsh
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
DynamicUntrustedEval 21 Nov 2005 - 12:45 - r1.5 JepriJepri
  STARTINCLUDE Evaluating untrusted code Problem We want to evaluate code outside our control (e.g., deserializing s-expressions in data files). Solution Restrict the ...
EnginesUsingThreads 19 May 2004 - 07:15 - r1.3 AntonVanStraaten
  Implementing Engines Using Threads Problem Implementing engines often makes use of complicated uses of call/cc . A thread implementation mirrors the definition of ...
FileAppendFiles 05 Jan 2007 - 15:44 - r1.2 NoelWelsh
  STARTINCLUDE Appending Files Together Problem You want to append the contents of several files to a single file. For example you want the contents of the file foo ...
FileChangePLTPath 18 Aug 2004 - 23:17 - r1.2 GordonWeakliem
  STARTINCLUDE Dynamically Changing the PLT Search Path Problem You want to change the path where PLT searches for modules at runtime. Solution current-library-collection ...
FileChapter 25 Jun 2004 - 10:39 - NEW NoelWelsh
  STARTINCLUDE Files and Directories TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"FileChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
FileChapterComments 13 Aug 2004 - 03:53 - r1.2 GordonWeakliem
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments STOPINCLUDE
FileCountLines 03 Sep 2004 - 07:09 - r1.3 BrentAFulgham
  STARTINCLUDE Counting Lines in a File Problem You need to count how many lines are in a file. Solution begin scheme (define (countlines filename) (call-with-input ...
FileCreateDeepDirectory 22 Aug 2004 - 23:25 - r1.2 GordonWeakliem
  STARTINCLUDE Creating Directories Including Parent Directories Problem You want to be able to create a directory with something more convenient than make-directory ...
FileDeletingAFile 03 Sep 2004 - 07:16 - r1.3 BrentAFulgham
  STARTINCLUDE Deleting a File Problem You want to delete a file. Solution Use plt scheme's standard function delete-file : Discussion begin scheme (delete-file path ...
FileDirectorySize 19 Aug 2004 - 01:56 - r1.2 GordonWeakliem
  STARTINCLUDE Computing the Size of a Directory Problem You want to compute the total size of a directory tree (i.e. the sum of the file sizes in a directory tree ...
FileIntroduction 25 Jun 2004 - 10:42 - r1.4 NoelWelsh
  STARTINCLUDE ToDo: Create examples where necessary for this introduction. Introduction This chapter deals with file access, that is opening files, passing files as ...
FileIsADirectory 25 Jun 2004 - 11:15 - r1.2 NoelWelsh
  STARTINCLUDE Testing Whether A File Is A Directory Problem You have a list of file names, which includes the names of some directories. You want to test if a name ...
FileMakePlatformIndependentPath 25 Jun 2004 - 11:18 - r1.2 NoelWelsh
  STARTINCLUDE Creating a Platform Independent Path Problem You want to create a directory in a platform independent way. The directory is several levels deep and you ...
FileManipulation 25 Jun 2004 - 10:42 - r1.8 NoelWelsh
  File Manipulation Introduction Sometimes you gotta interact with the file system and when you do things can get messy. File systems are dependent upon the operating ...
FileMaybeMakeDirectory 05 Feb 2006 - 20:19 - r1.4 NoelWelsh
  STARTINCLUDE Making A Directory If It Doesn't Already Exist Problem You want to create a directory only if it doesn't already exist. Solution Use make-directory from ...
FileNameFromPath 06 Feb 2006 - 11:49 - r1.2 NoelWelsh
  STARTINCLUDE Extracting the File Name from a Path Problem You want to extract just the file name from a path. For example, given a path such as "foo/bar/baz.ss" you ...
FileNamesMatchingRegularExpression 01 Feb 2006 - 16:53 - NEW NoelWelsh
  STARTINCLUDE Finding All Files Whose Name Match a Regular Expression Problem You want to find all files whose names match a traditional shell regular expression ...
FilePLTPath 13 Aug 2004 - 03:46 - NEW GordonWeakliem
  STARTINCLUDE Finding a File on the PLT Scheme Search Path Problem You want to search PLT's module search path for a file. Solution Discussion STOPINCLUDE Comments ...
FileProcessWords 22 Jun 2006 - 12:47 - r1.3 MichaelBurschik
  STARTINCLUDE Processing Every Word in a File Problem You need to do something to every word in a file, similar to the foreach function of csh. Solution INCLUDE{"Scm ...
FileProcessingAllFilesInADirectory 19 Jul 2005 - 18:36 - r1.4 JensAxelSoegaard
  STARTINCLUDE Processing All Files in a Directory Problem You want to do something to each file in a particular directory. Solution Use PltScheme's standard function ...
FileRandomAccessIO 01 Oct 2005 - 08:19 - r1.2 NoelWelsh
  STARTINCLUDE Using Random-Access Input/Output Problem You want to read a binary record from somewhere inside a large file of fixed-length records, without reading ...
FileRandomAccessUpdate 13 Aug 2004 - 03:52 - NEW GordonWeakliem
  STARTINCLUDE Updating a Random-Access File Problem You want to read a binary record from somewhere inside a large file of fixed-length records, change the values ...
FileRead 04 Nov 2008 - 15:08 - r1.4 StephenDeGabrielle
  STARTINCLUDE Reading An Entire Text File Problem You want to read the lines from a file and store them in a list. Solution begin scheme (define (readlines filename ...
FileReadIni 13 Aug 2004 - 03:37 - NEW GordonWeakliem
  STARTINCLUDE Reading Configuration Data from a File Problem You want to store configuration data for your program in a file. Solution Discussion STOPINCLUDE Comments ...
FileReadParagraph 13 Aug 2004 - 03:25 - NEW GordonWeakliem
  STARTINCLUDE Reading a Text File by Paragraphs Problem You need to read a file paragraph by paragraph. A paragraph break is marked by an empty line. Solution Discussion ...
FileReadRandomLine 18 Dec 2006 - 11:43 - r1.6 NoelWelsh
  STARTINCLUDE Retrieving a Line at Random from a File of Unknown Size Problem You have a file of unknown size, and you need to select one line at random from it. The ...
FileReadSpecificLine 13 Aug 2004 - 03:18 - NEW GordonWeakliem
  STARTINCLUDE Reading a Particular Line from a File Problem You want to extract a single line from a file. Solution Discussion STOPINCLUDE Comments about this recipe ...
FileReadZip 22 Feb 2005 - 05:39 - r1.2 DaveHerman
  STARTINCLUDE Reading Data from ZIP Files Problem You have an archive in ZIP format and you want to access the files in the archive. Solution begin scheme (require ...
FileReadingLines 25 Jun 2004 - 11:13 - r1.3 NoelWelsh
  STARTINCLUDE Reading Lines from a Text File PLT Scheme offers the read-line procedure for reading lines of text from an input port. The following are some useful ...
FileRecipes 25 Jun 2004 - 10:59 - NEW NoelWelsh
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
FileRenameRecursive 07 Sep 2004 - 21:53 - r1.2 GordonWeakliem
  STARTINCLUDE Renaming Files Throughout a Directory Tree Problem You need to rename files throughout an entire directory tree, for example, you want to change extension ...
FileSearchPath 13 Aug 2004 - 03:45 - NEW GordonWeakliem
  STARTINCLUDE Finding a File Given an Arbitrary Search Path Problem Given a search path, you need to find the first file along that path with a specified name. Solution ...
FileSearchReplace 13 Aug 2004 - 03:17 - NEW GordonWeakliem
  STARTINCLUDE Searching and Replacing Text in a File Problem You need to change one string into another throughout a file. Solution Discussion STOPINCLUDE Comments ...
FileSplitPath 25 Jun 2004 - 11:15 - r1.2 NoelWelsh
  STARTINCLUDE Splitting a Path into All of Its Parts Problem You want to split a path into all of its components. Solution explode-path in mzlib's file.ss will do ...
FileVersion 13 Aug 2004 - 03:49 - NEW GordonWeakliem
  STARTINCLUDE Versioning Filenames Problem You want to make a backup copy of a file, with a protocol of using a 3 digit number to the name of the old file. (VAX, anyone ...
FileWalkDirectoryTree 13 Sep 2004 - 15:13 - r1.3 JensAxelSoegaard
  STARTINCLUDE Walking Directory Trees Problem You need to look at every file in a directory, or an entire directory tree, that matches a given pattern. Solution The ...
FileWrite 10 Dec 2007 - 10:43 - r1.4 NoelWelsh
  STARTINCLUDE Writing to a File Problem You want to write text or data to a file. Solution If you just have a string s to write to a file with name fname , this will ...
FilesCopyingOrMovingAFile 25 Jun 2004 - 11:22 - r1.3 NoelWelsh
  STARTINCLUDE Copying or Moving a File Problem You need to copy a file. Solution Use PltScheme's standard function copy-file : begin scheme (copy-file src-path dest ...
FixnumDays 30 Mar 2004 - 00:19 - NEW AntonVanStraaten
  Teach Yourself Scheme in Fixnum Days http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme.html Teach Yourself Scheme in Fixnum Days is an excellent Scheme tutorial ...
ForeignInterfaceBasics 07 Apr 2006 - 01:02 - r1.2 NoelWelsh
  STARTINCLUDE Foreign interface basics Problem We want to use C libraries from Scheme without writing C code ourselves. Solution We'll use PLT Scheme's foreign module ...
ForeignInterfaceChapter 07 Apr 2006 - 01:02 - r1.3 NoelWelsh
  STARTINCLUDE Foreign Interface TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"ForeignInterfaceChapterComments"} Set ALLOWTOPICCHANGE Main ...
ForeignInterfaceChapterComments 07 Apr 2006 - 01:00 - NEW NoelWelsh
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments STOPINCLUDE
ForeignInterfaceIntroduction 07 Apr 2006 - 01:01 - NEW NoelWelsh
  STARTINCLUDE Introduction MzScheme version 299 introduces the foreign module, allowing us to drive libffi from Scheme to interface with C libraries. The design and ...
ForeignInterfaceRecipes 07 Apr 2006 - 01:03 - NEW NoelWelsh
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
FunctionalHeap 21 Jul 2009 - 20:12 - r1.6 JakeEakle
  Functional Heap Problem A heap is data structure that in its basic form supports the operations insert and delete-min . More advanced heaps also support merge . Solution ...
FunctionalQueue 16 Jun 2004 - 15:36 - r1.4 NoelWelsh
  STARTINCLUDE Functional Queue A queue is a data structure supporting the following operations: empty? , insert , remove and first . Problem The problem is to get ...
GUIChapter 14 Jun 2004 - 03:57 - r1.5 AntonVanStraaten
  STARTINCLUDE GUI Recipes TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"GUIChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
GUIChapterComments 04 Aug 2008 - 18:21 - r1.5 StephenDeGabrielle
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments See also Corey Sweeney's http://students.depaul.edu/~csweeney/Guibuilder.Tutorial.html GUI-builder Howto . Main ...
GUIHelloWorld 04 Aug 2008 - 14:23 - r1.4 StephenDeGabrielle
  STARTINCLUDE Creating a window containing text Problem You want to create a GUI window containing some text. Solution PltScheme provides a cross-platform GUI toolkit ...
GUIHowToUseATimer 24 Feb 2006 - 22:54 - NEW JensAxelSoegaard
  STARTINCLUDE How to use a timer Problem How to use a timer to update elements of a GUI. Solution begin scheme ;;; ;;; Clock ;;; ;; This program demonstrates how to ...
GUIIntroduction 14 Jun 2004 - 04:08 - NEW AntonVanStraaten
  STARTINCLUDE Introduction STOPINCLUDE
GUIRecipeAnimation 29 Aug 2004 - 23:04 - r1.4 JensAxelSoegaard
  STARTINCLUDE Animation Problem Displaying a window and animating its contents. Solution begin scheme ;;; Jumping PacMan (define PAUSE 0.002) ; determines the speed ...
GUIRecipeImagesInTheInteractionWindow 15 May 2004 - 11:27 - r1.6 JensAxelSoegaard
  STARTINCLUDE Displaying an Image in the DrScheme Interaction Window Problem Displaying an image in the DrScheme Interaction Window. Solution The interaction window ...
GUIRecipes 14 Jun 2004 - 04:00 - NEW AntonVanStraaten
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
GUIWidgetAggregation 17 Jul 2008 - 08:59 - r1.9 StephenDeGabrielle
  STARTINCLUDE Aggregating Widgets in a Single Widget Problem You would like to deal with many widgets as though they were a single widget. Solution begin scheme #lang ...
GettingCurrentProcessId 03 May 2006 - 21:30 - NEW DannyYoo
  STARTINCLUDE Getting the current process id (PID) using "foreign.ss" Problem We may want to get the current process id (PID) of the current running process. Solution ...
GettingStartedAdmin 07 Jul 2004 - 10:15 - r1.2 NoelWelsh
  Comments ToDo: Using PLT Scheme
GettingStartedChapter 07 Jul 2004 - 10:01 - r1.9 NoelWelsh
  STARTINCLUDE Getting Started With PLT Scheme TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"GettingStartedChapterAdmin"} Set ALLOWTOPICCHANGE ...
GettingStartedCollectionSearchPath 21 Apr 2007 - 22:27 - r1.3 YinSoChen
  STARTINCLUDE Changing the Library (Collection) Search Path Problem You want to change the path in which PltScheme searches for library (collection) paths. Solution ...
GettingStartedComments 17 Apr 2006 - 09:13 - NEW NoelWelsh
  STARTINCLUDE Commenting Out Code Problem You want to comment out some Scheme code. Solution In addition to the R5RS standard ; comment character, PltScheme also supports ...
GettingStartedContracts 16 Jul 2004 - 19:13 - r1.2 NoelWelsh
  Contracts http://people.cs.uchicago.edu/~robby/pubs/papers/ho-contracts-techreport.pdf Contracts for Higher Order Functions , Robby BruceFindler and Matthias Felleisen ...
GettingStartedExceptions 30 Jan 2007 - 04:25 - r1.9 DavidTPierson
  STARTINCLUDE Exceptions The exception system in MzScheme is the one proposed by http://www.cs.indiana.edu/scheme-repository/doc.proposals.exceptions.html Friedman ...
GettingStartedIntroduction 16 Jul 2004 - 19:14 - r1.4 NoelWelsh
  STARTINCLUDE Introduction PLT Scheme differs from `standard' Scheme in a number of ways. The differences are mostly either minor cosmetic issues or major enhancements ...
GettingStartedMacros 05 Feb 2007 - 14:59 - r1.10 JensAxelSoegaard
  Macros PLT Scheme supports syntax-rules , syntax-case and define-macro (also known as define-macro defmacro ). ftp://ftp.cs.indiana.edu/pub/scheme-repository/doc ...
GettingStartedMisc 10 May 2007 - 19:45 - r1.7 DannyYoo
  Miscellaneous Differences from Standard Scheme Square Brackets People who know some Scheme are often surprised to see square brackets in PLT Scheme programs. They ...
GettingStartedModules 16 Jul 2004 - 19:07 - r1.3 NoelWelsh
  Modules A very nice introduction to modules in PLT Scheme is http://www.htus.org/Book/Staging/how-to-use-modules/ How To Use Modules from http://www.htus.org How ...
GettingStartedPlanetWithProxy 21 Feb 2007 - 11:02 - r1.2 GeorgeHerson
  STARTINCLUDE Using PLaneT With a Web Proxy Problem You want to use PLaneT but your computer is behind a web proxy, preventing direct access to the PLaneT server. ...
GettingStartedRecipes 16 Jul 2004 - 19:03 - NEW NoelWelsh
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
GnucashImport 12 May 2006 - 18:16 - r1.2 AntonVanStraaten
  STARTINCLUDE Manipulating Gnucash Files in DrScheme using SSAX Problem Gnucash is nice, but its toolset is limited and I want to perform interesting computations ...
GrayCodes 24 Nov 2006 - 01:45 - NEW JosKoot
  STARTINCLUDE Gray Codes Problem A Binary Gray Code of k bits is a rearrangement of the list of the numbers 0 up to but not including 2k such that every element differs ...
GunzippingProgressivelyWithAPipe 21 May 2006 - 04:34 - NEW DannyYoo
  STARTINCLUDE Decompressing a gzipped file progressively using a pipe Problem We have a file that has been gzipped, and we would like to gunzip it. However, the function ...
HandinServerMonitor 17 May 2006 - 10:57 - r1.2 NoelWelsh
  STARTINCLUDE Monitoring the Handin Server Problem You use the PLT handin server to accept submissions. You want a cron job to run periodically to make sure the server ...
HashChapter 14 Jun 2004 - 01:17 - r1.3 AntonVanStraaten
  STARTINCLUDE Hashes TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"HashChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
HashChapterComments 17 Sep 2004 - 17:46 - r1.3 GordonWeakliem
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments Small comment: maybe we should avoid the use of the word "hash", since that's become a Perl term with lots of associations ...
HashCopy 17 Sep 2004 - 09:15 - NEW NoelWelsh
  STARTINCLUDE Copying The Contents of a Hash Table Problem You want to copy the contents of a hash table from one hash table to another, preserving both keys and values ...
HashIntroduction 17 Sep 2004 - 18:07 - r1.2 GordonWeakliem
  STARTINCLUDE Introduction PLT Scheme provides basic, but useful and fast ways of manipulating hashes. A hash table is used to store a collection of data values associated ...
HashReadAndWrite 17 Sep 2004 - 09:14 - NEW NoelWelsh
  STARTINCLUDE Reading and Writing Hash Tables Problem You want to write a hash table to disk and at a later time read it back. Solution The functions write-hash-table ...
HashRecipeAddingElement 19 May 2004 - 20:32 - NEW KarlaRamirez
  STARTINCLUDE Adding an Element to a Hash Problem You need to add an entry to a Hash. Solution Simply assign the element to the hash using hash-table-put! . begin ...
HashRecipeImmutable 19 May 2004 - 21:00 - NEW KarlaRamirez
  STARTINCLUDE Creating a Hash with Immutable Keys or Values Problem You would like to have a hash table whose values or keys couldn't be modified once set. Solution ...
HashRecipePresenceOfKeys 11 Dec 2006 - 05:03 - r1.8 BrianJ
  STARTINCLUDE Testing for the Presence of a Key in a Hash Problem You need to know wheter a hash has a particular key, regardless of whatever value may be associated ...
HashRecipePrinting 19 May 2004 - 21:37 - NEW KarlaRamirez
  STARTINCLUDE Printing a Hash Problem You want to print a hash (keys and values). Solution Using recipe HashRecipeTraverse we can easily print all the elements in ...
HashRecipeRemove 19 May 2004 - 21:13 - NEW KarlaRamirez
  STARTINCLUDE Deleting from a Hash Problem Remove an entry (key value) from a hash table. Solution hash-table-remove! removes the value mapping for the given key if ...
HashRecipeTraverse 14 Jun 2004 - 03:20 - r1.2 AntonVanStraaten
  STARTINCLUDE Traversing a Hash Problem You want to perform an action on each entry in a hash. Solution As with lists, see chapter ListChapter, there are two basic ...
HashRecipes 14 Jun 2004 - 01:17 - NEW AntonVanStraaten
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
HashRetrieve 21 Feb 2006 - 21:20 - r1.2 LukeRenn
  STARTINCLUDE Retrieving an Element from a Hash Problem You need to retrieve an item from a Hash. Solution Just use hash-table-get . begin scheme (define (hash-table ...
HashTables 24 Apr 2004 - 19:59 - NEW JensAxelSoegaard
  Hash Tables References http://download.plt-scheme.org/doc/206p1/html/mzscheme/mzscheme-Z-H-3.html#node sec 3.12 Hash Tables Section 3.12 in the MzScheme documentation ...
HelpDesk 29 Mar 2006 - 09:56 - r1.4 JensAxelSoegaard
  PLT Help Desk The PLT Help Desk is an application included with PLT's DrScheme which allows users to navigate through a great deal of Scheme information. It is "a ...
HelpNeeded 22 May 2005 - 05:02 - r1.50 AntonVanStraaten
  Pages with problems Note here if you come across a page with problems, but don't know how to fix it. Current Problems This might be more of an idea than a problem ...
HowToInstallPLTFile 16 Dec 2004 - 14:32 - r1.3 RobertBrook
  How To Install a .plt File 1 In DrScheme choose "Intall .plt File" in the "File..." menu, select the Web tab, and give it url where the file is on the web, then click ...
HowToMakeASnip 04 Aug 2008 - 19:30 - NEW StephenDeGabrielle
  STARTINCLUDE How to make a snip see http://docs.plt-scheme.org/gui/snip .html Problem You want to make a new type of snip for use on an editor-canvas (PLT Scheme ...
HowToUseScheme 26 May 2004 - 15:47 - NEW NoelWelsh
  http://www.htus.org/ How To Use Scheme is a guide to practical usage of PltScheme, with a more expository nature than this Cookbook. It is authored by the PLT team ...
HtmlPrag 03 Jan 2008 - 10:59 - NEW StephenDeGabrielle
  HtmlPrag provides permissive HTML parsing and emitting capability to Scheme programs. See: http://www.neilvandyke.org/htmlprag/ Main.StephenDeGabrielle 03 Jan 2008 ...
HttpsWebservering 07 Apr 2006 - 01:14 - r1.3 NoelWelsh
  STARTINCLUDE Using Apache as a HTTPS front end for the PLT web server Problem The PLT web server does not accept HTTPS connections on it's own. Solution Use Apache ...
IdiomChapter 13 Jun 2004 - 02:35 - r1.17 AntonVanStraaten
  STARTINCLUDE Common Idioms TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"IdiomChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
IdiomChapterComments 13 Jun 2004 - 02:40 - r1.4 AntonVanStraaten
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments STOPINCLUDE
IdiomDocumentedProcedures 16 May 2006 - 12:52 - r1.3 DaveHerman
  STARTINCLUDE Accessing Procedure Source Code Problem JavaScript programmers are familiar with accessing the source code of a procedure at runtime. Can we do this ...
IdiomEvaluateAndTest 17 Jun 2007 - 02:47 - r1.12 GeoffKnauth
  STARTINCLUDE Evaluate and Test Problem A common Scheme idiom is to return #f in the case of failure and a useful value otherwise. For example, the member function ...
IdiomIntroduction 16 Jul 2004 - 19:27 - r1.4 NoelWelsh
  Introduction A coding idiom is a solution to a commonly occurring programming problem. In a sense all recipes are idioms, but we use the term here for those recipes ...
IdiomLocation 18 Apr 2006 - 15:57 - NEW NoelWelsh
  STARTINCLUDE Capturing Location Information Problem You want to capture location information (file and line number, for example) for code you write. Solution The ...
IdiomLoopingConstructs 02 Jun 2007 - 04:43 - r1.13 TwobitSprite
  STARTINCLUDE The "missing" looping constructs while , repeat-until and for . Problem The control constructs while , repeat-until and for are present in most mainstream ...
IdiomMonadicProgramming 02 Jul 2005 - 00:53 - r1.6 JensAxelSoegaard
  Monadic Programming Monadic programming is made possible in Scheme using a mixture of functions and macros. Even though this programming style isn't widely used in ...
IdiomObjectOrientedProgramming 02 Apr 2008 - 22:36 - r1.12 StephenDeGabrielle
  Object Oriented Programming http://www.cs.dartmouth.edu/~cs18/W2004/handouts/objects/objects.html Object Oriented Programming using (a modified) Swindle http://www ...
IdiomOptionalArguments 01 Aug 2010 - 14:20 - r1.7 RudiBonfiglioli
  STARTINCLUDE Optional arguments Problem Some functions take arguments that only in exceptional cases are different from a default value. Optional arguments makes ...
IdiomPrematureReturn 19 May 2007 - 03:32 - r1.8 AntonVanStraaten
  STARTINCLUDE Returning prematurely from a function Problem You are either porting code from an imperative language (like C) as literally as possible and they suddenly ...
IdiomRecipes 11 Jun 2004 - 09:44 - r1.3 NoelWelsh
  STARTINCLUDE Recipes SEARCH{"TopicType. value \"Recipe;ParentTopic. value \"IdiomRecipes" casesensitive "on" regex "on" nosearch "on" nototal "on" order "formfield ...
IdiomReference 11 Jun 2004 - 09:44 - r1.3 NoelWelsh
  References OnLisp details many CommonLisp idioms, many of which are appropriate for Scheme.
IdiomSerializeToFile 15 Apr 2005 - 14:38 - r1.10 NoelWelsh
  STARTINCLUDE Serialize Data to File Problem You want to write data to a file such that when you eval that file that data is recreated. Solution Use the functions ...
IdiomSharingState 01 Nov 2008 - 14:29 - r1.11 NunoYobidness
  Sharing state between two functions Problem Defining two functions sharing state without polluting the top level with unneccesary definitions. Solution There are ...
IdiomStaticVariables 10 Apr 2007 - 08:32 - r1.5 NoelWelsh
  STARTINCLUDE Static Variables for Functions Problem A single function needs to carry forward state from call to call, but you do not want to polute your environment ...
IdiomStreams 04 Feb 2008 - 13:01 - r1.4 StephenDeGabrielle
  STARTINCLUDE Streams Problem You want to handle state in a functional manner. Solution The concept you're looking for is called a "Stream". Discussion The canonical ...
ImperativeQueues 09 Jan 2008 - 18:33 - r1.7 JosKoot
  STARTINCLUDE Imperative Queues Problem A queue is a first-in first-out memory. Objects can be stored one by one and can be extracted (or removed) one by one. Objects ...
IncludingRecipesInChapters 16 Jul 2004 - 19:37 - NEW NoelWelsh
  At the bottom of every page is a form called the CookbookForm. The organisation of the site depends on the values in this form, so take care to fill them in correctly ...
IncludingSourceCode 16 Aug 2004 - 14:54 - r1.8 NoelWelsh
  Including Source Code in the Cookbook Keywords and Inline Expressions Keywords and other inline expressions can be highlighted and rendered in fixed font by surrounding ...
IndexPageSelectList 16 Jul 2004 - 19:03 - r1.12 NoelWelsh
  Index Pages Select List The following is a list of index pages, used to select a new recipe's parent in the NewRecipe form. STARTINCLUDE NoParentSelected IdiomRecipes ...
IntroductionToMzlibClasses 12 Dec 2007 - 16:32 - r1.7 StephenDeGabrielle
  STARTINCLUDE (lib "class.ss") Notes These are a set of notes I'm taking about learning the class system in mzlib, the standard library that comes with mzscheme. I ...
IsAString 07 Dec 2004 - 21:08 - r1.8 MarcCharpentier
  STARTINCLUDE Testing Whether an Object is a String Problem You need to test if an object is a string. Solution The string? predicate is what you want: begin scheme ...
IteratorGenerators 14 Sep 2004 - 03:47 - r1.3 OlegK
  STARTINCLUDE Generating Iterators Problem Python programmers may be familiar with Python's yield keyword and generator functions. Python has built-in language support ...
LGPL 08 Sep 2004 - 09:15 - r1.3 AntonVanStraaten
  Cookbook License Per the ContributorAgreement, material contributed to the Cookbook is licensed to the public under the terms of the GNU Lesser General Public License ...
LIstRecipeFiltering 29 Aug 2004 - 08:27 - r1.3 BrentAFulgham
  STARTINCLUDE Filtering Lists Problem Solution Discussion filter STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 02 Jun 2004
LayoutMultiplePanelsInAFrame 17 Apr 2008 - 06:28 - r1.2 NoelWelsh
  STARTINCLUDE Laying out panels in a window Problem You want to make a specific layout of your panels Solution Laying out panels in DrScheme is simple, Inside your ...
LibraryIndex 01 Jul 2004 - 14:17 - NEW NoelWelsh
  Scheme Library Index This page lists pages that describe libraries of Scheme code. Any page that has the TopicType in its CookbookForm set to Library is included ...
ListChapter 14 Jun 2004 - 03:20 - r1.11 AntonVanStraaten
  STARTINCLUDE List Recipes TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"ListChapterAdmin"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
ListChapterComments 14 Jun 2004 - 03:16 - r1.2 AntonVanStraaten
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments STOPINCLUDE
ListCircularList 12 Aug 2004 - 18:29 - NEW GordonWeakliem
  STARTINCLUDE Building a Circular List Problem You want to build a list that's circular; that is, as you navigate it, you eventually reach the head again. For example ...
ListFlatten 26 Jun 2007 - 18:42 - r1.4 KyleSmith
  STARTINCLUDE How to flatten a list. Problem To flatten a list means to destructure a list into a flat list. For example: begin scheme (flatten '(a (b (c d) e) f) ...
ListIntroduction 21 Jan 2007 - 05:24 - r1.3 BrentAFulgham
  Introduction Being a flavor of Lisp (LISt Processing), Scheme contains lists as a low-level feature of the language. Unfortunately, the standard set of tools for ...
ListQueues 16 Aug 2004 - 02:18 - r1.2 GordonWeakliem
  STARTINCLUDE Creating Queues Problem You want to build a Queue data structure, e.g. a First-In-First-Out list structure. Solution http://mitpress.mit.edu/sicp/full ...
ListRecipeConstructing 21 Jan 2007 - 05:42 - r1.3 BrentAFulgham
  STARTINCLUDE Constructing Lists Problem You wish to create a list from nothingness. Solution Use cons , or cons-immutable to make lists or dotted pairs. cons-immutable ...
ListRecipeExtractingSublist 17 Jun 2005 - 18:31 - r1.7 JensAxelSoegaard
  STARTINCLUDE Extracting a sublist Problem Given a list, extract a segment specified by a start and an end index (exclusive). Solution begin scheme (require (lib ...
ListRecipeExtractingUniqueElements 19 May 2004 - 22:33 - NEW FranciscoSolsona
  STARTINCLUDE Extracting Unique Elements from a List Problem You want to eliminate duplicate values from a list. Solution There are several possible solutions for ...
ListRecipeFilterElements 26 Mar 2006 - 00:48 - r1.3 JensAxelSoegaard
  STARTINCLUDE Finding All Elements in a List Matching Certain Criteria Problem From a list, you want only the elements that match certain criteria. This notion of ...
ListRecipeFiltering 11 Apr 2005 - 08:31 - r1.5 NoelWelsh
  STARTINCLUDE Filtering Lists Problem You have a list with a bunch of items, but you want to have a copy of that list with some items removed. Solution filter , in ...
ListRecipeListMinus 19 May 2004 - 21:50 - r1.2 IvanHernandez
  STARTINCLUDE Finding Elements in One Array but Not Another Problem You want to find elements that are in one list but not another. Solution You want to find elements ...
ListRecipeReferences 14 Jun 2004 - 03:20 - r1.2 AntonVanStraaten
  References ToDo: Links to R5RS, SRFI1, list.ss in mzlib. HTDP on list recipes
ListRecipeSplittingInHalves 29 Aug 2004 - 07:47 - r1.7 BrentAFulgham
  Splitting a list in halves Problem Splitting a list in two lists whose lengths are half of the original. Solution begin scheme ; split-in-halves : list (values list ...
ListRecipeTraversing 21 Nov 2008 - 11:07 - r1.4 MichaelBurschik
  STARTINCLUDE Traversing Lists Problem Solution The map procedure applies a procedure proc that takes n arguments and returns a single value, to n lists and returns ...
ListRecipes 14 Jun 2004 - 03:22 - r1.2 AntonVanStraaten
  STARTINCLUDE Recipes SEARCH{"TopicType. value \"Recipe;ParentTopic. value \"ListRecipes" casesensitive "on" regex "on" nosearch "on" nototal "on" order "formfield ...
MacroExampleASimplePatternMatcher 23 May 2007 - 13:00 - NEW JensAxelSoegaard
  STARTINCLUDE Macro Example: A simple pattern matcher Problem Write a simple pattern matcher with syntax-rules. Solution The following is a very na´ve implementation ...
MacrosChapter 24 Aug 2007 - 17:31 - NEW WillFarr
  STARTINCLUDE Macros TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"MacrosChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
MacrosChapterComments 24 Aug 2007 - 17:50 - NEW WillFarr
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments STOPINCLUDE Main.WillFarr 24 Aug 2007
MacrosChapterRecipes 24 Aug 2007 - 17:53 - NEW WillFarr
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup Main.WillFarr 24 Aug 2007
MacrosIntroduction 24 Aug 2007 - 17:48 - NEW WillFarr
  STARTINCLUDE Introduction Scheme macros are transformations on the source of a scheme program which happen at "compile" time. They allow you to introduce New binding ...
MatchingStructFieldsByName 03 Nov 2006 - 19:52 - r1.2 RichardCobbe
  STARTINCLUDE How to Match Struct Fields by Name Problem Both pattern-matching libraries in PLT Scheme allow you to match against fields of a structure, but they only ...
MiscSICP 16 Jan 2005 - 15:13 - NEW JensAxelSoegaard
  STARTINCLUDE How To Run SICP Programs in DrScheme Problem Getting a program from SICP to run in DrScheme. Solution Choose the Proper Language In the "Language" menu ...
MrEd 24 Sep 2004 - 08:53 - r1.2 JensAxelSoegaard
  MrEd MrEd (the program, the language) defines the graphical platform on which DrScheme is built. It provides an evaluator for the MzScheme language extended with ...
MzScheme 24 Sep 2004 - 08:52 - r1.2 JensAxelSoegaard
  MzScheme MzScheme is a language. It is one of the Scheme family of languages. It is part of PltScheme PLT Scheme , which also includes DrScheme and MrEd. Main.JohnClements ...
NetChapter 30 Dec 2005 - 02:09 - NEW AntonVanStraaten
  STARTINCLUDE Network Programming TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"NetChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
NetRecipes 30 Dec 2005 - 02:36 - NEW AntonVanStraaten
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
NetSendEmail 27 Nov 2007 - 15:45 - r1.4 StephenDeGabrielle
  STARTINCLUDE Sending Email Problem You want to send an email from a Scheme program Solution Use the smtp.ss or sendmail.ss modules, and the head.ss module, all in ...
NewChapter 19 Aug 2004 - 09:25 - r1.2 AntonVanStraaten
  Create New Chapter Use the form below to create a new chapter for the cookbook. Fill in the chapter name (a TWiki.WikiWord) and title, and press the Create Chapter ...
NewLibrary 01 Jul 2004 - 14:41 - NEW NoelWelsh
  Create New Library Use the form below to create a new library for the cookbook. Fill in the library name (a TWiki.WikiWord) and title, and press the Create Library ...
NewRecipe 01 Jun 2004 - 04:42 - r1.3 AntonVanStraaten
  Create New Recipe Use the form below to create a new recipe for the cookbook. Fill in the recipe name (a TWiki.WikiWord) and title, and press the Create Recipe button ...
NewSRFI42Generator 24 Aug 2007 - 22:23 - r1.2 JensAxelSoegaard
  STARTINCLUDE Creating a New SRFI-42 Generator Problem You have a new datatype, in this example a matrix , and you want users to be able to iterate over it using http ...
NoParentSelected 13 May 2004 - 00:32 - NEW AntonVanStraaten
  Recipes without proper parents Recipes which were created via the NewRecipe form without a parent being selected are listed below. SEARCH{"NoParentSelected"} Main ...
NondeterministicCFG 10 Nov 2006 - 16:32 - NEW CJayMartin
  STARTINCLUDE Non-deterministic Context Free Grammars Problem The amb procedure works wonders. It does seem- to have a serious issue, if formed as offered in "Teach ...
NumberChapter 11 Jun 2004 - 10:24 - r1.22 NoelWelsh
  Numbers TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"NumberChapterAdmin"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
NumberIntegerPartition 20 Dec 2004 - 13:09 - NEW NoelWelsh
  STARTINCLUDE Generating the Partitions of an Natural Number Problem Generate the partitions of a natural number (a non-negative integer). Solution This Scheme code ...
NumberIntroduction 11 Jun 2004 - 10:26 - r1.4 NoelWelsh
  STARTINCLUDE Introduction Numbers are basic to just about any computation. They're used for array indexes, temperatures, salaries, and an infinite variety of things ...
NumberPrinting 05 May 2007 - 14:02 - r1.2 GeoffKnauth
  STARTINCLUDE Printing Numbers Problem You want to print a number with a specified a format. Solution The generic printing functions, display , write , format , and ...
NumberRandomNumberDistributions 18 Feb 2005 - 11:09 - r1.2 JensAxelSoegaard
  STARTINCLUDE Generation of Random Numbers of a Given Distribution Problem Generation of random numbers following a certain probability distribution. Solution Use ...
NumberRecipeBiasedRands 12 Dec 2006 - 22:56 - r1.12 JensAxelSoegaard
  STARTINCLUDE Generating Biased Random Numbers Problem Instead of producing a series of numbers distributed uniformly over an interval, we need data following one ...
NumberRecipeBigRandomNumber 25 Aug 2004 - 08:29 - r1.8 JensAxelSoegaard
  Big Random Numbers Problem The MzScheme function (random n) only works for n (require (lib "27.ss" "srfi")) (random-integer 1234567890) 42 end Main.JensAxelSoegaard ...
NumberRecipeCommas 14 Dec 2006 - 18:06 - r1.7 BrianJ
  STARTINCLUDE Putting Commas in Numbers Problem You need to format a number for printing with commas (or other locale-dependant marks) in the appropriate places. This ...
NumberRecipeComplexNums 11 Jun 2004 - 10:26 - r1.5 NoelWelsh
  STARTINCLUDE Using Complex Numbers Problem You wish to manipulate complex numbers (i.e., numbers with both a real and imaginary component.) This is commonly needed ...
NumberRecipeConvOctHex 18 Aug 2004 - 17:26 - r1.8 BrentAFulgham
  STARTINCLUDE Converting Between Octal and Hexadecimal Problem You want to convert a string (e.g., "0x55" or "0755") containing an octal or hexadecimal number to the ...
NumberRecipeCorrectPlurals 30 Aug 2004 - 00:01 - r1.6 GordonWeakliem
  STARTINCLUDE Printing Correct Plurals Problem You would like to generate messages reporting quantities with correct grammar. For example, you would like to say "There ...
NumberRecipeDiffRandNum 11 Jun 2004 - 10:26 - r1.5 NoelWelsh
  STARTINCLUDE Generating Different Random Numbers Problem You notice that several processes are getting the same "random" number sequence. You would like each process ...
NumberRecipeRandomNumber 11 Jun 2004 - 20:56 - r1.7 NeilVanDyke
  STARTINCLUDE Generating Random Numbers Problem You want a random number from a given range. For example, you wish to randomly select one element from an array, simulate ...
NumberRecipeTakingLogs 11 Jun 2004 - 10:26 - r1.8 NoelWelsh
  STARTINCLUDE Taking Logarithms Problem You want to take a logarithm in various bases. Solution For logarithms to base e, use the built-in log: begin scheme (log ...
NumberRecipes 11 Jun 2004 - 10:26 - r1.3 NoelWelsh
  Recipes SEARCH{"TopicType. value \"Recipe;ParentTopic. value \"NumberRecipes" casesensitive "on" regex "on" nosearch "on" nototal "on" order "formfield(TopicOrder ...
NumberRecipesComparing 11 Jun 2004 - 10:26 - r1.6 NoelWelsh
  STARTINCLUDE Comparing Floating-Point Numbers Problem You want to compare two floating-point numbers and know if they are equal. Unfortunately, floating-point arithmetic ...
NumberRecipesConvertBinDec 11 Jun 2004 - 10:26 - r1.8 NoelWelsh
  STARTINCLUDE Converting Between Binary and Decimal Problem You would like to display the binary representation of an integer, or the integer representation of a binary ...
NumberRecipesIsNumber 23 Aug 2004 - 20:00 - r1.8 BrentAFulgham
  STARTINCLUDE Checking Whether a String Is a Valid Number Problem You need to check if a given string contains a valid number. Solution We supose that we want to check ...
NumberRecipesOpListInts 11 Jun 2004 - 10:26 - r1.5 NoelWelsh
  STARTINCLUDE Operating on a Series of Integers Problem You want to perform an operation on all integers in a certain range. Solution Use the map , foldl , or for ...
NumberRecipesRomanNumerals 24 Aug 2004 - 18:16 - r1.7 BrentAFulgham
  Working with Roman Numerals Problem You want to convert decimal numbers to Roman numerals and Roman numerals to decimal numbers. Solution Here is some example code ...
NumberRecipesRounding 23 Aug 2004 - 23:41 - r1.8 BrentAFulgham
  Rounding Floating-Point Numbers Problem You need to round a floating-point number to an integer. Solution Use one of the procedures round , ceiling , floor and truncate ...
OldTOC 07 Jul 2004 - 10:15 - r1.30 NoelWelsh
  PLT Scheme Cookbook Obsolete: do not edit. This is the old Cookbook table of contents, which was manually edited. The current TOC is generated automatically. ToDo ...
OnLisp 11 Jun 2004 - 09:42 - r1.2 NoelWelsh
  On Lisp Paul Graham's book on advanced techniques for CommonLisp. The book is freely available at http://www.paulgraham.com/onlisp.html Main.JensAxelSoegaard 11 ...
OriginalCookbook 07 Jul 2004 - 10:15 - r1.7 NoelWelsh
  Original Cookbook The WebIt files from the original Cookbook have been converted into TWiki format. They are contained in the following pages: TOC Table of Contents ...
PLTCustodianRegistration 07 Dec 2009 - 13:12 - r1.3 MrMathematica
  STARTINCLUDE Registering an object to a custodian Problem The foreign function interface allows us to register objects with a finalizer that calls when an object ...
PLTFileToText 30 Sep 2004 - 15:23 - r1.4 NoelWelsh
  STARTINCLUDE Convert any source file to text Problem DrScheme saves some files in a binary format that is inconvenient upon occasion. For example, it's difficult ...
PLaneT 27 Aug 2004 - 22:00 - r1.3 NeilVanDyke
  PLaneT PLaneT is a network package distribution system for PltScheme. As of PltScheme version 208 and later, PLaneT permits a program to require code packages that ...
PacMan 14 May 2004 - 00:53 - NEW JensAxelSoegaard
  PacMan Classic arcade game originally named PuckMan (exercise: why was the name changed?). http://www.miniclip.com/pacman.htm Try it http://www.mameworld.net/pacman ...
ParallelOrUsingThreads 19 May 2004 - 07:16 - r1.2 AntonVanStraaten
  Implementing parallel-or using threads begin scheme ; parallel-or : thunk thunk value ; evaluate thunk1 and thunk2 in parallel, ; return the return value from the ...
ParentTopic 01 Jun 2004 - 03:55 - r1.3 AntonVanStraaten
  Parent Topic List The following are topics considered suitable as ParentTopics on the CookbookForm. These lists are generated automatically. Chapters These are topics ...
Parsing 16 Dec 2008 - 22:43 - r1.4 AaronHawley
  Parsing http://docs.plt-scheme.org/parser-tools/ The parser-tools collection http://www.iro.umontreal.ca/~boucherd/Lalr/documentation/lalr.html Portable and efficient ...
ParsingWithLazySxml 08 May 2006 - 09:47 - NEW DannyYoo
  STARTINCLUDE Parsing Large XML Files with SXML's lazy:xml- sxml and lazy:sxpath Problem Some XML files are too large to hold in memory all at once without significant ...
PatternMatchingChapter 15 Aug 2004 - 03:37 - r1.10 GordonWeakliem
  STARTINCLUDE Pattern Matching TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"PatternMatchingChapterComments"} Set ALLOWTOPICCHANGE Main ...
PatternMatchingChapterComments 15 Aug 2004 - 17:07 - r1.2 JensAxelSoegaard
  Other matchers IU-Match The pattern matcher original written by Dan Friedman, then rewritten by Erik Hilsdale and later modified by Kent Dybvig. This pattern matcher ...
PatternMatchingIntroduction 15 Nov 2004 - 06:21 - r1.4 JoeEdmonds
  STARTINCLUDE Introduction Pattern matching is a particular convenient way to specify a case analysis on compound data and at the same time to deconstruct the data ...
PatternMatchingRecipes 25 Jun 2004 - 10:35 - NEW NoelWelsh
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
PearlANormalForm 16 Nov 2005 - 02:31 - r1.6 AntonVanStraaten
  STARTINCLUDE Transforming CoreScheme into A Normal Form Compilers for higher order langauges often use different forms of temporary representations of the program ...
PearlFunAndGames 26 Nov 2008 - 12:27 - r1.4 BenjaminLRussell
  Fun and Games These are a few little toy examples for modelling finite state machines in Scheme. There are better ways to do it. It's just really basic stuff for ...
PearlsChapter 16 Nov 2005 - 02:13 - r1.6 AntonVanStraaten
  STARTINCLUDE Pearls TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"PearlsChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
PearlsList 16 Nov 2005 - 02:30 - NEW AntonVanStraaten
  STARTINCLUDE Pearls SEARCH{"TopicType. value \"Pearl;ParentTopic. value \"PearlsList" casesensitive "on" regex "on" nosearch "on" nototal "on" order "formfield(TopicOrder ...
PingPongTutorial 30 Dec 2005 - 05:28 - r1.3 AntonVanStraaten
  STARTINCLUDE The Ping-Pong Duet (Tutorial) This tutorial implements a client-server combination of staggering simplicity. The client issues requests that consist ...
PlannedTopicClassifications 20 Aug 2004 - 16:38 - r1.6 NoelWelsh
  Planned Topic Classifications Most recipes have now been classified via the CookbookForm. The results of this can be seen on the RecipeIndex page. Some of the topics ...
PlotExample 14 Dec 2006 - 00:50 - NEW DannyYoo
  STARTINCLUDE Drawing and saving a PLoT graph as an image Problem You may have plotted out a graph with the PLoT package, and now want to save it off as an image. ...
PltDebugger 29 Sep 2005 - 22:48 - NEW JensAxelSoegaard
  STARTINCLUDE PLT Debugger Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.JensAxelSoegaard 29 Sep 2005 Screenshot of the PLT ...
PltManuals 16 Sep 2008 - 18:46 - r1.4 MarekKubica
  PLT Manuals PltScheme PLT Scheme is well-documented, with a plethora of manuals in HTML format. Many of the most frequently asked questions about PLT Scheme can be ...
PltScheme 11 May 2004 - 16:43 - r1.3 NeilVanDyke
  PLT Scheme PLT Scheme is the Scheme dialect on which this cookbook is focused. PLT Scheme consists of a family of software, including the DrScheme graphical Scheme ...
ProcessAccessingCommandLineArguments 09 Jan 2006 - 07:06 - r1.3 AntonVanStraaten
  STARTINCLUDE Accessing Command Line Arguments Problem You want to access the command line arguments passed to your MzScheme program was called with. Solution The ...
ProcessCaptureOutput 23 Jul 2009 - 10:54 - r1.8 TroelsKnakNielsen
  STARTINCLUDE Capturing the Output of a Process Problem You want to run an external process and capture its output. Solution The function system/output below uses ...
ProcessChapter 28 Feb 2005 - 10:51 - r1.2 NoelWelsh
  STARTINCLUDE Process Management and Communication TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"ProcessChapterComments"} Set ALLOWTOPICCHANGE ...
ProcessChapterComments 25 Feb 2005 - 16:53 - NEW NoelWelsh
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments STOPINCLUDE Main.NoelWelsh 25 Feb 2005
ProcessIntroduction 25 Feb 2005 - 16:51 - NEW NoelWelsh
  STARTINCLUDE Introduction No program is an island. Oftentimes you have to interact with the fiddle world of external processes. PltScheme makes is easier to execute ...
ProcessRecipes 25 Feb 2005 - 16:52 - NEW NoelWelsh
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup Main.NoelWelsh 25 Feb 2005
ProcessRunningExternalProcess 04 Mar 2005 - 21:59 - r1.3 AntonVanStraaten
  STARTINCLUDE Running An External Process Problem You want to run an external program. Solution The library process.ss in MzLib provides handy utilities for both synchronous ...
ProcessUntarScriptExample 10 Feb 2006 - 08:07 - NEW AntonVanStraaten
  STARTINCLUDE Scripting Example: Untar Problem You want to use Scheme to do something that you would normally do using a shell script. Solution PLT Scheme has a great ...
ProcessingChars 09 Jun 2004 - 15:40 - r1.6 NoelWelsh
  STARTINCLUDE Processing a String One Character at a Time Problem You want to process a string a character at a time Solution You can convert the string into a list ...
ProducerConsumerThreads 01 Jun 2007 - 23:17 - r1.3 EricHanchrow
  Consumer/Producer Threads Problem Some problems can be conveniently solved using a consumer/producer model. A producer generates data, which a consumer must handle ...
ProvidingSetBangableIds 07 Apr 2006 - 00:45 - r1.3 NoelWelsh
  STARTINCLUDE How to provide identifiers that can be mutated with set! directly Problem In MzScheme, you can set! identifiers that you defined within your own module ...
Quack 06 Dec 2004 - 20:25 - r1.2 JensAxelSoegaard
  Quack Quack is an add-on for the Emacs text editor, which enhances Emacs' support for editing and running Scheme programs. Quack be obtained from http://www.neilvandyke ...
ReadLineContinuation 13 Aug 2004 - 03:26 - NEW GordonWeakliem
  STARTINCLUDE Reading Lines with Continuation Characters Problem You have a file that includes long logical lines split over two or more physical lines, with backslashes ...
RecentSiteChanges 09 Apr 2007 - 00:15 - r1.16 AntonVanStraaten
  Recent Site Changes This page lists recent changes to the site structure. We're closing in on a stable structure, but until stability is reached, this page should ...
RecipeIndex 31 May 2004 - 18:45 - r1.7 AntonVanStraaten
  Cookbook Recipe Index The following is a list of all Cookbook topics, by chapter. This is intended to replace the TOC. This list is generated by a query based on ...
RecipeStub 19 May 2004 - 16:26 - NEW AntonVanStraaten
  Recipe Stubs These are recipes waiting to be written, or that are partially complete. A great opportunity to give your typing fingers a workout! The recipes listed ...
RecipeValidatingCreditCardNumber 16 May 2004 - 16:45 - NEW NeilVanDyke
  STARTINCLUDE Validating a Credit Card Number Problem You want to to preliminary validation of a credit card number, such as for detecting typographical errors in ...
RecipeWebSettingsPanel 13 Jan 2006 - 18:14 - r1.3 AntonVanStraaten
  STARTINCLUDE Building settings panels for the web Problem We want to make settings panels without an Apply button so that changes take effect immediately, just as ...
RegexAbbreviations 25 Jun 2004 - 10:26 - NEW NoelWelsh
  STARTINCLUDE Matching Abbreviations Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun 2004
RegexAndOrAndNot 25 Jun 2004 - 10:23 - NEW NoelWelsh
  STARTINCLUDE Expressing AND, OR, and NOT in a Single Pattern Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun ...
RegexApproximateMatching 25 Jun 2004 - 10:20 - NEW NoelWelsh
  STARTINCLUDE Approximate Matching Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun 2004
RegexChapter 20 Aug 2004 - 12:29 - r1.2 NoelWelsh
  STARTINCLUDE Regular Expressions TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"RegexChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
RegexChapterComments 21 Sep 2004 - 15:50 - r1.3 JoeEdmonds
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments See also StringRecipeRemovingWhiteSpace, which uses a regular expression to remove white space from the ends of ...
RegexCommentRegExp 25 Jun 2004 - 09:52 - r1.2 NoelWelsh
  STARTINCLUDE Commenting Regular Expressions Problem You want to make it easy to maintain and understand your complex regular expressions. Solution Use comments inside ...
RegexDetectingDuplicates 25 Oct 2004 - 09:26 - r1.2 JensAxelSoegaard
  STARTINCLUDE Detecting Duplicate Words Problem A common writing mistake is to repeat repeat a word. You want to detect doubled words in a string. Solution We use ...
RegexFindNth 25 Jun 2004 - 10:15 - NEW NoelWelsh
  STARTINCLUDE Finding the Nth Occurrence of a Match Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun 2004
RegexGrabbag 25 Jun 2004 - 10:27 - NEW NoelWelsh
  STARTINCLUDE Regular Expression Grabbag Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun 2004
RegexGreedyVsNonGreedy 25 Jun 2004 - 10:22 - NEW NoelWelsh
  STARTINCLUDE Greedy and Non-Greedy Matches Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun 2004
RegexHonoringLocale 25 Jun 2004 - 10:20 - NEW NoelWelsh
  STARTINCLUDE Honoring Locale Settings in Regular Expressions Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun ...
RegexIntroduction 30 Aug 2004 - 00:39 - r1.2 BrentAFulgham
  STARTINCLUDE Introduction Lisps in general are sort of famous for looking down on Regular Expressions. Other languages that lack Scheme's powerful pattern matching ...
RegexMatchMultipleLines 25 Jun 2004 - 10:16 - NEW NoelWelsh
  STARTINCLUDE Matching Multiple Lines Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun 2004
RegexMatchingLetters 25 Jun 2004 - 09:50 - r1.4 NoelWelsh
  STARTINCLUDE Matching Letters Problem You want to see if a value contains only alphabetic characters. Solution A first approximation can be achieved using the standard ...
RegexMatchingWords 25 Jun 2004 - 09:51 - r1.3 NoelWelsh
  STARTINCLUDE Matching Words Problem You want to select words from a string. Solution Determine the defining features of a word for your specific application, then ...
RegexMultiByteCharacters 25 Jun 2004 - 10:24 - NEW NoelWelsh
  STARTINCLUDE Matching Multiple-Byte Characters Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun 2004
RegexPatternSeparator 25 Jun 2004 - 10:17 - NEW NoelWelsh
  STARTINCLUDE Reading Records with a Pattern Separator Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun 2004 ...
RegexRangeOfLines 25 Jun 2004 - 10:17 - NEW NoelWelsh
  STARTINCLUDE Extracting a Range of Lines Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun 2004
RegexRecipes 25 Jun 2004 - 09:37 - NEW NoelWelsh
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
RegexReference 25 Jun 2004 - 09:43 - NEW NoelWelsh
  STARTINCLUDE References Mastering Regular Expressions, written by Jeffrey Friedl and published by O'Reilly Associates. http://download.plt-scheme.org/doc/206p1/html ...
RegexShellGlobs 25 Jun 2004 - 10:18 - NEW NoelWelsh
  STARTINCLUDE Matching Shell Globs as Regular Expressions Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun 2004 ...
RegexSpeedUpInterpolation 25 Jun 2004 - 10:18 - NEW NoelWelsh
  STARTINCLUDE Speeding Up Interpolated Matches Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun 2004
RegexSplitInclusive 25 Jun 2004 - 09:49 - r1.7 NoelWelsh
  STARTINCLUDE Splitting a String, Including Matches Problem You want to split a string based on some pattern, but you want the matches included. Solution The regexp ...
RegexTcgrep 25 Jun 2004 - 10:27 - NEW NoelWelsh
  STARTINCLUDE Program: tcgrep Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun 2004
RegexTestingValidPattern 25 Jun 2004 - 10:19 - NEW NoelWelsh
  STARTINCLUDE Testing for a Valid Pattern Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun 2004
RegexUrlify 25 Jun 2004 - 10:26 - NEW NoelWelsh
  STARTINCLUDE Program: urlify Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun 2004
RegexpMatchingFromLastPattern 25 Jun 2004 - 10:21 - NEW NoelWelsh
  STARTINCLUDE Matching from Where the Last Pattern Left Off Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun ...
RegexpValidEmail 25 Jun 2004 - 10:25 - NEW NoelWelsh
  STARTINCLUDE Matching a Valid Email Address Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.NoelWelsh 25 Jun 2004
RelatedProjects 13 Jul 2006 - 04:43 - r1.6 RobertFisher
  Related Projects How To Use Scheme HowToUseScheme is intended as an introduction to practical uses of PltScheme PLT Scheme PLEAC Project The http://pleac.sourceforge ...
RnRS 29 Mar 2004 - 22:01 - NEW JensAxelSoegaard
  RnRS RnRs is the name is the family name of the programming language standards for Scheme. The R2RS is "The Revised Revised Report on the Algorithmic Language Scheme ...
SRFI 16 Jul 2004 - 19:19 - r1.2 NoelWelsh
  Scheme Request for Implementation SRFI The SRFIs define the closest thing the fiercely independent Scheme community has to a standard library. PltScheme supports ...
SRFI9 10 Oct 2004 - 09:38 - NEW JensAxelSoegaard
  SRFI 9 Defining Record Types SRFI 9 provides a way to define new record types. For each record type a predicate, a constructor, and field accessors and modifiers ...
SSAX 27 Dec 2004 - 12:13 - r1.4 NoelWelsh
  SSAX for PLT SSAX is a functional XML parsing framework. It consists of a DOM/SXML parser, a SAX parser, and a supporting library of lexing and parsing procedures ...
SXPath 03 Jan 2008 - 10:58 - NEW StephenDeGabrielle
  SXPath is a query language for SXML. It treats a location path as a composite query over an XPath tree or its branch. A single step is a combination of a projection ...
SaveBinaryDataInSQL 04 Jul 2008 - 04:38 - NEW HiSeeComments
  STARTINCLUDE Save Binary Data in SQL Problem Postgres has a binary datatype. However, if your using hans's sqlid database driver with postgres, and try to save a ...
SchemeChapter 08 Sep 2004 - 18:51 - r1.2 AntonVanStraaten
  STARTINCLUDE Getting Started With Scheme TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"SchemeChapterComments"} Set ALLOWTOPICCHANGE Main ...
SchemeChapterComments 24 Aug 2010 - 15:13 - r1.5 AntonVanStraaten
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments STOPINCLUDE Main.NoelWelsh 31 Aug 2004
SchemeHelloWorld 20 May 2005 - 15:29 - r1.3 JensAxelSoegaard
  STARTINCLUDE Hello World! Problem You want to write the classic "Hello World!" program in Scheme Solution This is very easy in Scheme: begin scheme (begin (display ...
SchemeIntroduction 02 Sep 2004 - 08:16 - r1.5 AntonVanStraaten
  STARTINCLUDE Introduction Scheme is a programming language in the Lisp tradition that emphasises elegance and simplicity. There are a number of implementations of ...
SchemeQL 19 Aug 2004 - 16:59 - NEW NoelWelsh
  STARTINCLUDE SchemeQL Location http://schematics.sourceforge.net/ Description SchemeQL is a s-expression based language embedded in Scheme that expresses SQL queries ...
SchemeRecipes 31 Aug 2004 - 11:37 - NEW NoelWelsh
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
SchemeUnit 08 Aug 2006 - 19:05 - r1.2 NoelWelsh
  STARTINCLUDE SchemeUnit Location Distributed via PLaneT. At the time of writing http://planet.plt-scheme.org/300/#schemeunit.plt Description A UnitTesting framework ...
SectionIndex 27 Jan 2010 - 07:32 - r1.10 JensAxelSoegaard
  This page is a prototype, under development. It is like the new auto-generated TOC, but with chapters having their own headings, rather than being bulleted items. ...
SectionStub 14 Jun 2004 - 03:45 - NEW AntonVanStraaten
  Section Stubs These are sections waiting to be written, or that are partially complete. Write one of these and ensure your place in Scheme history! The recipes listed ...
SieveOfEratosthenes 24 Nov 2006 - 00:45 - r1.2 JosKoot
  STARTINCLUDE Block-based "Sieve of Eratosthenes" Problem The "Sieve of Eratosthenes" is simple algorithm for finding primes. It starts with a big table of numbers ...
SimpleCanvasOperations 19 Dec 2007 - 12:14 - NEW StephenDeGabrielle
  STARTINCLUDE Simple Canvas operations Problem You want to operate on and interact with a drawing canvas. Solution See also ''PLT MrEd: Graphical Toolbox Manual Chapter ...
SimpleGridLayout 23 Apr 2006 - 02:31 - NEW DannyYoo
  STARTINCLUDE Simple Grid Layout Problem You want to lay out your widgets in grids. Solution This is possible by using a bunch of horizontal-panel instances. For example ...
SiteToDo 12 May 2004 - 23:59 - NEW AntonVanStraaten
  Cookbook SiteToDo Items This is a list of topics containing todo items related to the Cookbook site functionality. To add a topic to this list, simply reference SiteToDo ...
SoundUtils 15 Aug 2006 - 16:22 - r1.2 AntonVanStraaten
  begin scheme ;;uses swindle and PLT Scheme ;;some constants rates in Hz and as aiff bytestrings (define rate44kHz (cons 44100 (bytes #xAC #x44 #x00 #x00))) (define ...
StringBasics 09 Jun 2004 - 15:42 - r1.8 NoelWelsh
  STARTINCLUDE String Basics In Scheme, literal strings are enclosed in quotes. According to R5RS, "A string constant may continue from one line to the next, but the ...
StringCSV 09 Jun 2004 - 15:42 - r1.7 NoelWelsh
  STARTINCLUDE Processing Comma Separated Values Problem You want to work with comma separated value records, such as those exported from popular spreadsheet and database ...
StringChapter 09 Jun 2004 - 15:40 - r1.8 NoelWelsh
  STARTINCLUDE String Recipes TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"StringChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
StringChapterComments 14 Dec 2006 - 02:23 - r1.8 ChrisWarrington
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments See the http://cl-cookbook.sourceforge.net/strings.html String section of the CommonLispCookBook for inspiration ...
StringCheckForChar 09 Jun 2004 - 15:42 - r1.4 NoelWelsh
  STARTINCLUDE Checking a String for a Character Problem You need to find out if a string contains a character. You probably want to know the index of where the character ...
StringCombine 09 Jun 2004 - 15:42 - r1.4 NoelWelsh
  STARTINCLUDE Combining Strings Problem You need to combine several strings into a larger string. Solution The R5RS function string-append is the de-facto answer here ...
StringCompare 09 Jun 2004 - 15:42 - r1.4 NoelWelsh
  STARTINCLUDE Comparing Strings Problem You need to compare two strings. Solution All of the R5RS functions are in the form stringop?, e.g. string ? or string ? . ...
StringControlCase 09 Jun 2004 - 15:42 - r1.6 NoelWelsh
  STARTINCLUDE Controlling Case Problem You need to convert a string to all uppercase or all lowercase. Solution Use string-upcase or string-downcase from SRFI 13. ...
StringEval 09 Jun 2004 - 15:42 - r1.7 NoelWelsh
  STARTINCLUDE Evaluating Scheme Code in a String Problem You want to eval Scheme code stored in a string Solution Use eval-string from string.ss : begin scheme (require ...
StringFilterCharSet 09 Jun 2004 - 15:42 - r1.4 NoelWelsh
  STARTINCLUDE Filtering a String for a Set of Characters Problem You want to remove all but a specified set of characters from a string. Solution This is really a ...
StringFormatCode 09 Jun 2004 - 15:42 - r1.3 NoelWelsh
  STARTINCLUDE Formatting Scheme Code Problem You have some Scheme code (or any S-Expression) that you want to format readably Solution pretty-print in mzlib is an ...
StringIndent 09 Jun 2004 - 15:42 - r1.4 NoelWelsh
  STARTINCLUDE Changing the Indentation of a String Problem You have a string made up of multiple lines, and you need to build a string, adding or removing spaces so ...
StringInterpolation 09 Jun 2004 - 15:42 - r1.5 NoelWelsh
  STARTINCLUDE Interpolating Functions and Expressions Within Strings Problem You want to create string using a mixture of literals and computed values. For example ...
StringIntroduction 22 Oct 2004 - 20:05 - r1.6 GordonWeakliem
  Introduction A string is a sequence of characters. A string is written by enclosing the characters with a doublequote ("). Some special characters must be preceded ...
StringNumber 15 Sep 2004 - 13:23 - r1.11 JensAxelSoegaard
  STARTINCLUDE Testing Whether a String Represents an Integer Problem You want to determine whether a string is an integer Solution string- integer STRING START END ...
StringOther 11 Jun 2004 - 09:50 - r1.7 NoelWelsh
  Other recipes of interest SEARCH{"TopicType. value \"Recipe;ParentTopic. value \"StringOther" casesensitive "on" regex "on" nosearch "on" nototal "on" order "formfield ...
StringRecipeConversionStringVsSymbol 01 Oct 2005 - 08:37 - r1.6 NoelWelsh
  Converting Between Strings and Symbols Problem You want to convert a symbol to a string or vice versa Solution The built-in function string- symbol converts from ...
StringRecipeConvertToFromASCII 09 Jun 2004 - 15:42 - r1.3 NoelWelsh
  STARTINCLUDE Converting Between ASCII Characters and Values Problem You want to get the number representing the ASCII value of a character, or you want to display ...
StringRecipeDecodingBinaryMessages 09 Jun 2004 - 15:42 - r1.8 NoelWelsh
  STARTINCLUDE Decoding Binary Messages Problem You have a string containing the characters 0 and 1, representing, in binary, the ASCII values of some text. You want ...
StringRecipeLevenshtein 09 Jun 2004 - 15:42 - r1.4 NoelWelsh
  STARTINCLUDE Testing Similarity of Two Strings via Levenshtein Distance Problem You want to determine how "similar" two strings (or lists, or vectors) are, such as ...
StringRecipeRemovingWhiteSpace 08 Sep 2004 - 17:47 - r1.2 GordonWeakliem
  STARTINCLUDE Removing white space from the ends of a string Problem Remove possible white spaces from the beginning and end of a string. Solution begin scheme ; strip ...
StringRecipeSortingListOfStrings 14 Dec 2006 - 02:24 - r1.6 ChrisWarrington
  Sorting a list of strings Problem Sort a list of strings. Solution Use the sort operation in the list collection list.ss . begin scheme (require (lib "compat.ss" ...
StringRecipes 09 Jun 2004 - 15:42 - r1.10 NoelWelsh
  STARTINCLUDE Recipes SEARCH{"TopicType. value \"Recipe;ParentTopic. value \"StringRecipes" casesensitive "on" regex "on" nosearch "on" nototal "on" order "formfield ...
StringRecipesOld 31 May 2004 - 22:49 - r1.28 AntonVanStraaten
  STARTINCLUDE String Recipes Introduction A string is a sequence of characters. A string is written by enclosing the characters with a doublequote ("). Some special ...
StringReference 11 Jun 2004 - 09:49 - r1.4 NoelWelsh
  References http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-9.html# sec 6.3.5 String section of R5RS http://download.plt-scheme.org/doc/206p1/html/mzscheme ...
StringReverse 09 Jun 2004 - 15:42 - r1.6 NoelWelsh
  STARTINCLUDE Reversing a String by Words or Characters Problem You want to reverse the words or characters in a string Solution Wait, don't tell me, it's... SRFI ...
StringSoundex 09 Jun 2004 - 15:40 - r1.7 NoelWelsh
  STARTINCLUDE Soundex Problem You want to generate Soundex hashes of surnames, for doing "sounds-like" indexing databases, or retrieving information from the US Census ...
StringSoundexMatching 23 Aug 2004 - 23:42 - r1.9 BrentAFulgham
  STARTINCLUDE Soundex Matching Problem You want to generate Soundex hashes of surnames, for doing "sounds-like" indexing databases, or retrieving information from ...
StringSplit 13 Sep 2008 - 16:17 - r1.9 MarekKubica
  STARTINCLUDE string-split: splitting a string into substrings Problem Split a string into words separated by whitespace or other delimiters. See the function split ...
StringSubstring 09 Jun 2004 - 15:42 - r1.5 NoelWelsh
  STARTINCLUDE Accessing Substrings Problem You want to extract part of a string. Solution R5RS substring is the most general solution. substring takes a string, a ...
StringTabs 20 Oct 2005 - 21:20 - r1.17 AntonVanStraaten
  STARTINCLUDE Expanding and Compressing Tabs Problem You want to convert spaces in a string to tabs, or vice versa. Solution You can define this by searching for tabs ...
StructureChapter 30 Aug 2004 - 21:36 - r1.2 AntonVanStraaten
  STARTINCLUDE Structures TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"StructureChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
StructureChapterComments 02 Sep 2004 - 06:45 - r1.3 BunnyBunny
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments I object to this egregiously gratuitous PLT-specificness, when it is explicitly stated in the CookbookFAQ page that ...
StructureFunctionalUpdates 11 Jun 2007 - 20:34 - r1.2 DanielSilva
  STARTINCLUDE Functional Updates Problem You want to update fields without overwriting an existing structure. Solution The PLT Scheme standard libraries provide a ...
StructureIntroduction 10 Oct 2004 - 09:32 - r1.3 JensAxelSoegaard
  STARTINCLUDE Introduction Structures are the built in records in PLT. A stucture type is a record datatype with a number of fields . A structure is an instance of ...
StructurePrinting 14 Mar 2007 - 00:04 - r1.2 ChrisWarrington
  STARTINCLUDE Printing Structures Problem By default structures are printed like # struct:s by the REPL, display and so on. You want to see the contents of structures ...
StructureRecipes 01 Jul 2004 - 14:20 - r1.7 NoelWelsh
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
StructureReference 01 Jul 2004 - 14:15 - NEW NoelWelsh
  STARTINCLUDE References http://download.plt-scheme.org/doc/206p1/html/mzscheme/mzscheme-Z-H-4.html#node chap 4 Structures Chapter 4 in the MzScheme documentation ...
StructuresReadingAndWriting 03 Aug 2005 - 13:44 - r1.7 EricHanchrow
  STARTINCLUDE Reading and Writing Structures Problem You want to save a structure to disk and read it at a later time. Solution (If you're using MzScheme 299, use ...
SucessFailContinuations 26 Oct 2004 - 19:58 - r1.5 GordonWeakliem
  STARTINCLUDE How to Succeed and Fail with Continuations You need to walk a data structure, and the nodes you visit determine what to do. A simple example is to search ...
SudokuSolver 24 Aug 2010 - 16:09 - r1.2 BenKordesh
  STARTINCLUDE Sudoku Problem You want to know how to use the Dr Racket slideshow functions: table, rectangle, pict-width, pict-height, linewidth, cc-superimpose, lt ...
SyntaxLoc 24 Aug 2007 - 22:45 - NEW WillFarr
  STARTINCLUDE Using syntax/loc instead of syntax Problem You're tired of bad error messages and location information from your macros. Solution Use syntax/loc instead ...
TOC 18 Aug 2004 - 07:17 - r1.6 AntonVanStraaten
  Schematics Scheme Cookbook The following table of contents is generated automatically. It includes all topics with a TopicType of Chapter in the CookbookForm. See ...
TeachScheme 27 Aug 2004 - 22:03 - r1.2 NeilVanDyke
  TeachScheme is a program that teaches high-school teachers to teach Scheme. To quote from their Web site: The TeachScheme! Project wants to turn Computing and Programming ...
TextTemplate 13 Aug 2007 - 19:55 - NEW NikitaSidorov
  STARTINCLUDE text-template Location http://text-template.sourceforge.net Description text-template is a small text template library for scheme. It can be used to ...
ThirtyTwoBitRandomIntegers 11 Feb 2006 - 17:04 - NEW EmilioLopes
  STARTINCLUDE Generating simple 32-bit random integers in portable Scheme Problem You want to generate pseudo-random integers in the range 0,2 32 . Solution The following ...
ThreadChapter 14 Jun 2004 - 04:17 - r1.5 AntonVanStraaten
  STARTINCLUDE Thread Recipes TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"ThreadChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
ThreadChapterComments 12 Dec 2007 - 16:47 - r1.2 StephenDeGabrielle
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments A nice simple example of thread use is available at http://www.kuro5hin.org/story/2004/3/17/93442/8657 It supplies ...
ThreadIntroduction 14 Jun 2004 - 04:20 - NEW AntonVanStraaten
  Introduction
ThreadRecipes 14 Jun 2004 - 04:16 - NEW AntonVanStraaten
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
ThreadSuspendingCurrentThread 20 Jul 2007 - 17:04 - r1.2 EricHanchrow
  STARTINCLUDE Suspending the Current Thread Problem You wish to indefinitely suspend the current thread Solution There are two good solutions: begin scheme (sync ...
Thunk 02 May 2004 - 19:57 - NEW JensAxelSoegaard
  Thunk A thunk is a procedure of no argument. Thus (lambda () 42) is an example of a thunk. References For the etymology see the http://www.catb.org/~esr/jargon/html ...
TimeArithmetic 28 Aug 2004 - 07:45 - r1.2 BrentAFulgham
  STARTINCLUDE Time Arithmetic Problem You have a date and time and want to find the date and time of some period in the future or past. Solution By using http://srfi ...
TimeChapter 14 Jun 2004 - 00:56 - r1.9 AntonVanStraaten
  STARTINCLUDE Dates, and Time TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"TimeChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
TimeChapterComments 14 Jun 2004 - 01:05 - NEW AntonVanStraaten
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments Contributors Main.FranciscoSolsona 28 Apr 2004 STOPINCLUDE
TimeEpochToTime 28 Aug 2004 - 07:18 - r1.2 BrentAFulgham
  STARTINCLUDE Converting Epoch Seconds to DMYHMS Problem You have a date and time in Epoch seconds, and you want to calculate individual DMYHMS values from it. Solution ...
TimeISO8601 28 Apr 2004 - 19:23 - r1.2 JensAxelSoegaard
  STARTINCLUDE Converting Between struct:time and ISO-8601 Format Problem You have an application that requires you to use ISO-8601 Format for input and output. Solution ...
TimeIntroduction 27 Aug 2004 - 23:33 - r1.2 BrentAFulgham
  STARTINCLUDE Introduction PLT Scheme provides basic, but important ways of manipulating time and dates. (current-seconds) returns the current time in seconds, and ...
TimeRFC822 15 Oct 2007 - 11:58 - r1.3 JeromeBaum
  STARTINCLUDE Writing and Parsing RFC 822 Dates and Times Problem You need to convert from struct:time to RFC 822 format Dates and Times. Solution mzlib provides one ...
TimeRecipes 14 Jun 2004 - 00:59 - NEW AntonVanStraaten
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
TimeToEpoch 28 Apr 2004 - 01:30 - NEW FranciscoSolsona
  STARTINCLUDE Converting DMYHMS to Seconds Problem You want to convert a date, a time, or both with distinct values for day, month, year, etc. to seconds. Solution ...
TimeToday 28 Apr 2004 - 01:23 - NEW FranciscoSolsona
  STARTINCLUDE Finding Today's Date Problem You need to find the year, month, and day values for today's date. Solution Use current-seconds , and seconds- date to get ...
TimeWeekOfTheYear 05 May 2004 - 21:50 - NEW FranciscoSolsona
  STARTINCLUDE Week of the Year, and Day of the Week/Month/Year Problem Given a date, you need to find out what week of the year, day of the week, day of the month ...
ToDo 14 Jun 2004 - 03:22 - r1.4 AntonVanStraaten
  ToDo Items Below is a list of pages which have work ToDo. Any page which includes a reference to this topic (ToDo) will appear in the list. If this list isn't long ...
TopicOrder 31 May 2004 - 01:14 - NEW AntonVanStraaten
  TopicOrder An explanation of topic ordering should go here. SiteToDo. Main.AntonVanStraaten 31 May 2004
TopicType 01 Jul 2004 - 13:59 - r1.10 NoelWelsh
  Cookbook Topic Types Each page in the Cookbook web is assigned a TopicType via its CookbookForm. This type determines which pages the topic will automatically be ...
TrimmingSpace 08 Sep 2004 - 17:40 - r1.9 GordonWeakliem
  STARTINCLUDE Trimming Blanks from the Ends of a String Problem You need to ignore leading or trailing space in a string Solution http://srfi.schemers.org/srfi-13 ...
TryExecForever 23 Sep 2004 - 19:45 - NEW DanielSilva
  STARTINCLUDE Try executing a program until success Problem We want to constantly launch a program until it returns successfully, but we'd rather not use a Bash script ...
UncurryingDefine 25 Jun 2006 - 13:23 - r1.2 NoelWelsh
  STARTINCLUDE Syntax for explicitly uncurrying a MIT-style defined function Problem We may want to explicitly transform a function that uses MIT Scheme style curried ...
UnitSig 18 Sep 2006 - 15:46 - r1.2 DanSchmidt
  STARTINCLUDE Creating and using a Signed Unit Problem You want to create something like a module, but incomplete, so that some functionality is defined elsewhere ...
UpdatableMd5 05 Feb 2007 - 19:32 - r1.2 JensAxelSoegaard
  STARTINCLUDE Applying a md5 checksum through multiple updates Problem We may want to apply an md5 checksum on a bunch of strings in a file, such as the textual content ...
UpgradeFrom208To299 24 Jan 2006 - 06:00 - r1.6 JohnClements
  STARTINCLUDE Upgrading your PLT v208 code to work with PLT v299 Problem PLT v299 (soon to be PLT v300) is different from PLT v208 (its predecessor), and code that ...
UsenetAnnouncement 10 Sep 2004 - 07:04 - r1.2 AntonVanStraaten
  Announcing the Schematics Scheme Cookbook After an extensive, scientifically conducted alpha- and beta-testing period, I am pleased to announce the Schematics Scheme ...
VectorChapter 14 Jun 2004 - 01:37 - r1.4 AntonVanStraaten
  STARTINCLUDE Vectors TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"VectorChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
VectorChapterComments 14 Jun 2004 - 01:33 - NEW AntonVanStraaten
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments STOPINCLUDE
VectorIntroduction 21 Jan 2007 - 10:51 - r1.3 JensAxelSoegaard
  STARTINCLUDE Introduction Vectors are efficient data structures, containing a fixed number of elements that can be accessed in constant time, and in any order. Vectors ...
VectorRecipeBinarySearch 15 May 2004 - 07:25 - r1.3 AntonVanStraaten
  STARTINCLUDE Binary Search of Vector begin scheme ; binary-search : vector-of-numbers number (union #f integer) ; return the index of x in the sorted vector v if ...
VectorRecipes 14 Jun 2004 - 01:36 - NEW AntonVanStraaten
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
WebBase64Encoding 03 Jan 2006 - 15:14 - r1.2 NoelWelsh
  STARTINCLUDE Encoding Data Using Base 64 Problem You want to encode a string using the Base64 encoding, for instance to send a username and password using HTTP Basic ...
WebCGIProgramming 25 Apr 2004 - 19:58 - r1.2 JensAxelSoegaard
  CGI programming Problem You want to write scripts that follow the Common Gateway Interface, aka CGI, for instance to request information to register new users to ...
WebChanges 16 Aug 2001 - 19:58 - NEW PeterThoeny
  INCLUDE{" TWIKIWEB .WebChanges"}
WebChapter 13 Jun 2004 - 03:06 - r1.16 AntonVanStraaten
  STARTINCLUDE Web Programming TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"WebChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ...
WebChapterComments 29 Nov 2005 - 18:32 - r1.2 TempOne
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments This chapter should be split into two: NetChapter for general network programming and WebChapter for recipes specific ...
WebDispatchOnLink 05 Feb 2006 - 17:08 - r1.4 NoelWelsh
  STARTINCLUDE Dispatch On a Link Being Clicked Problem You are writing a servlet in the PLT web server and want to choose an action based on which link was clicked ...
WebExtractingAllLinksFromPage 19 Jan 2006 - 22:42 - r1.10 JensAxelSoegaard
  STARTINCLUDE Fetching all links from a page Problem Given an url, fetch the page, parse it and extract all links. Solution We will use string- url and get-pure-port ...
WebFetchingHttpsUrl 17 Dec 2008 - 15:27 - r1.8 EricHanchrow
  STARTINCLUDE Fetching an HTTPS URL Problem PLT Scheme's url.ss library in the net collection does not directly support retrieval of URLs via HTTPS, i.e. using SSL ...
WebFetchingURL 12 Jul 2007 - 08:02 - r1.5 StephenDeGabrielle
  STARTINCLUDE Fetching a URL Problem You want to get the web page stored at a URL (web address), such as http://schematics.sourceforge.net/ Solution The url.ss library ...
WebFileUpload 01 Jul 2008 - 04:26 - r1.3 HiSeeComments
  File Upload Problem You already know how to write complex, and useful CGIs in scheme, however you need to upload a file (any kind of file) from the user computer ...
WebGettingStartedInstaweb 03 Mar 2008 - 11:30 - r1.4 NoelWelsh
  STARTINCLUDE Getting Started With Web Development and Instaweb Problem You don't know how to get started with web development using the PLT Web server. Solution The ...
WebHome 24 Aug 2010 - 03:39 - r1.42 AntonVanStraaten
  Welcome to the Schematics Scheme Cookbook. The Schematics Scheme Cookbook is a BecomingAnAuthor collaborative effort to produce documentation and recipes for using ...
WebIncludingDocType 25 May 2006 - 13:04 - r1.4 VincentKraeutler
  STARTINCLUDE Including A DOCTYPE Declaration With A Servlet Response Problem You want to include a DOCTYPE declaration in your servlet response, whilst retaining ...
WebIndex 24 Nov 2001 - 11:41 - r1.2 PeterThoeny
  SEARCH{"\. " scope "topic" regex "on" nosearch "on"} See also the faster WebTopicList
WebIntroduction 12 Jun 2004 - 20:42 - NEW AntonVanStraaten
  Introduction Taking it to the net is not only the perogative of basketball players. PLT Scheme has a comprehensive suite of tools to deal with Internet tasks. This ...
WebIt 01 Jul 2004 - 14:08 - r1.4 NoelWelsh
  WebIt! WebIt! is an XML framework for Scheme. WebIt! supports the creation of XML, HTML, and CSS using Scheme. It provides a powerful "macro system" for transformation ...
WebNotify 01 Oct 2005 - 17:24 - r1.6 DaveHerman
  This is a subscription service to be automatically notified by e-mail when topics change in this Cookbook web. This is a convenient service, so you do not have to ...
WebPLTWebServer 05 Jan 2008 - 19:37 - r1.4 TroelsKnakNielsen
  STARTINCLUDE The PLT Web Server Starting the PLT Web Server Starting the web server on your computer is easy. Start a commmand prompt and execute the command: plt ...
WebPostRedirectGet 02 Oct 2005 - 02:02 - r1.2 DaveHerman
  STARTINCLUDE The Post-Redirect-Get Pattern Problem When displaying a page after receiving a form submission, the browser's "refresh" button should not repost the ...
WebPreferences 05 Jan 2006 - 05:09 - r1.28 AntonVanStraaten
  TWiki.Cookbook Web Preferences The following settings are web preferences of the TWiki.Cookbook web. These preferences overwrite the site-level preferences in TWIKIWEB ...
WebPreventCaching 01 Apr 2007 - 17:37 - r1.2 EricHanchrow
  STARTINCLUDE Preventing Caching of Web Pages Problem In a continuation-based web application, URLs are rewritten to refer to continuations. If you don't take care ...
WebRecipes 12 Jun 2004 - 21:00 - NEW AntonVanStraaten
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
WebRss 27 May 2004 - 00:12 - r1.2 AntonVanStraaten
  Schematics Scheme Cookbook SCRIPTURL /view SCRIPTSUFFIX /Cookbook Cookbook of practical applications of the Scheme programming language INCLUDE{"WebRssBase"}
WebRssBase 27 May 2004 - 00:14 - NEW AntonVanStraaten
  RSS Feed This is the base for the RSS feed for the Cookbook web. Each web has a WebRss that should contain the following text: TWiki's INCLUDINGWEB web SCRIPTURL ...
WebSearch 08 Aug 2001 - 05:26 - NEW PeterThoeny
  INCLUDE{" TWIKIWEB .WebSearch"}
WebStatistics 22 Apr 2014 - 22:04 - r1.315 Main.guest
  Statistics for Cookbook Web Month: Topic views: Topic saves: File uploads: Most popular topic views: Top contributors for topic save and uploads: Apr 2014 27998 0 ...
WebTopicEditTemplate 18 May 2004 - 23:51 - NEW AntonVanStraaten
  WIKIUSERNAME DATE
WebTopicList 24 Nov 2001 - 11:40 - NEW PeterThoeny
  TOPICLIST{" $name "} See also the verbose WebIndex.
WriteSqlInSchemeLikeSyntax 01 Jul 2008 - 05:32 - r1.2 AntonVanStraaten
  STARTINCLUDE Write SQL In Scheme Like Syntax Problem Writing SQL queries, by writing strings using "string-append" can be a pain. a sexp would make life easier. Solution ...
WritingXML 11 Dec 2008 - 17:20 - NEW DannyYoo
  STARTINCLUDE Writing XML using the xml library Problem You have some s-expression that you'd like to write to XML. Solution Use the write-xml/content function in ...
XMLRecipeLowMem 11 Jun 2004 - 10:30 - r1.2 NoelWelsh
  STARTINCLUDE Processing Files Larger Than Available Memory Problem You want to work with a large XML file, but you can't read it into memory to form a DOM or other ...
XMLRecipeRSS 12 Aug 2004 - 18:07 - r1.7 GordonWeakliem
  STARTINCLUDE Reading and Writing RSS Files Problem You want to create an RSS (Rich Site Summary) file, or read one produced by another application. Handling RSS can ...
XMLRecipeSimpleChanges 08 Oct 2007 - 23:14 - r1.7 EricHanchrow
  STARTINCLUDE Making Simple Changes to Elements or Text Problem You want to filter some XML. For example, you want to make substitutions in the body of a document ...
XMLRecipeValidating 11 Jun 2004 - 10:31 - r1.2 NoelWelsh
  STARTINCLUDE Validating XML Problem You want to ensure that the XML you're processing conforms to a DTD or XML Schema. STOPINCLUDE Main.HectorEGomezMorales 05 May ...
XMLRecipeWriteXML 11 Jun 2004 - 10:30 - r1.2 NoelWelsh
  STARTINCLUDE Writing XML Problem You have a data structure that you'd like to convert to XML. STOPINCLUDE Main.HectorEGomezMorales 05 May 2004
XMLRecipeXMLToDOM 11 Jun 2004 - 10:31 - r1.2 NoelWelsh
  STARTINCLUDE Parsing XML into a DOM Tree Problem You want to use the DOM (Document Object Model) to access and perhaps change the parse tree of an XML file. STOPINCLUDE ...
XMLRecipeXMLToData 13 Apr 2006 - 09:33 - r1.7 NoelWelsh
  STARTINCLUDE Parsing XML into Data Structures Problem You want a list that corresponds to the structure and content of an XML file. Solution For example you have ...
XMLRecipeXMLToSAX 11 Jun 2004 - 10:31 - r1.2 NoelWelsh
  STARTINCLUDE Parsing XML into SAX Events Problem You want to receive SAX (Simple API for XML) events from an XML parser because event-based parsing is faster and ...
XMLRecipeXPath 21 Feb 2006 - 18:53 - r1.4 LukeRenn
  STARTINCLUDE Finding Elements and Text Within an XML Document Problem You want to get to a specific part of a XML document. For example, you want to get the text ...
XMLRecipeXSLT 11 Jun 2004 - 10:30 - r1.2 NoelWelsh
  STARTINCLUDE Processing XML Stylesheet Transformations Problem You have an XML stylesheet that you want to use to convert XML into something else. For example, you ...
XmlChapter 11 Jun 2004 - 10:28 - r1.12 NoelWelsh
  STARTINCLUDE XML TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"XmlChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup
XmlChapterComments 14 Jun 2004 - 03:07 - r1.3 AntonVanStraaten
  TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments here Contributors Main.HectorEGomezMorales 19 May 2004 STOPINCLUDE
XmlIntroduction 11 Jun 2004 - 10:28 - r1.4 NoelWelsh
  Introduction XML (Extensible Markup Language) is a http://www.w3.org/ W3C Recommendation for creating special-purpose markup languages. It is a simplified subset ...
XmlRecipes 11 Jun 2004 - 10:30 - r1.2 NoelWelsh
  STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup

Number of topics : 450


 
 
Copyright © 2004 by the contributing authors. All material on the Schematics Cookbook web site is the property of the contributing authors.
The copyright for certain compilations of material taken from this website is held by the SchematicsEditorsGroup - see ContributorAgreement & LGPL.
Other than such compilations, this material can be redistributed and/or modified under the terms of the GNU Lesser General Public License (LGPL), version 2.1, as published by the Free Software Foundation.
Ideas, requests, problems regarding Schematics Cookbook? Send feedback.
/ You are Main.guest