Map
Index
Random
Help
th

Quote: use higher-order functions to glue together simple functions; e.g., vector sum as 'reduce add 0' and list concate as 'reduce cons b a'

QuoteRef: hughJ_1984 , p. 4



Topic:
identifying program modules
Topic:
higher-order functions and combinators

Quotation Skeleton

[Higher-order functions] enables simple functions to be glued together … [For example, consider] adding up the elements of a list. … Examining this definition [of 'sum'], we see that only … ['0' and '+'] … This means that the computation of a sum … ['0' and '+']. This recursive pattern is conventionally called reduce and so sum … [p. 5] sum = reduce add 0 … Since one list can be appended to another … a   Google-1   Google-2

Copyright clearance needed for quotation.


Related Topics up

Topic: identifying program modules (26 items)
Topic: higher-order functions and combinators (19 items)

Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.