Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
curry, rcurry - Generate a curried procedure
Calling Sequence
curry(p)
curry(p, rest)
rcurry(p)
rcurry(p, rest)
Parameters
p
-
procedure or name to be curried
rest
(optional) expression sequence of arguments to be curried over
Description
The procedure curry returns a procedure derived from its first argument p by currying on the remaining arguments, if any, in procedure application.
Given a Maple expression f (usually a procedure or a name), the curried procedure curry( f, x1, x2, ..., xn ) is the procedure g for which . In the case in which , currying on no arguments returns a procedure that calls f.
It is useful for producing a derived procedure from an existing one within the context of other commands such as map, zip, select, remove, and apply.
The procedure rcurry is similar to curry, but curries on the specified arguments from the right of the parameter list.
The definition of currying used here is adapted from "The Haskell 98 Report" ("The Haskell Language Report"), by Simon Peyton Jones, et. al. (http://haskell.org/onlinereport/)
Examples
Suppose you want to print a table, specified as a list of equations, in a neat form.
' .----. ( -.--.- ) -.--.- , --..-- - -....- . .-.-.- / -..-. 0 ----- 1 .---- 2 ..--- 3 ...-- 4 ....- 5 ..... 6 -.... 7 --... 8 ---.. 9 ----. : ---... = -...- ? ..--.. a .- b -... c -.-. d -.. e . f ..-. g --. h .... i .. j .--- k -.- l .-.. m -- n -. o --- p .--. q --.- r .-. s ... t - u ..- v ...- w .-- x -..- y -.-- z --..
See Also
apply, eval, function, lexorder, map, sort, type[function], zip
Download Help Document