Difference between revisions of "Thunks and Streams Assignment"
Jump to navigation
Jump to search
(→Test) |
(Replaced content with "=Motivation= Experience with dynamic types. =Code To Use= * [https://docs.racket-lang.org/reference/pairs.html#%28def._%28%28lib._racket%2Fprivate%2Flist..rkt%29._foldl%2...") Tag: Replaced |
||
Line 1: | Line 1: | ||
=Motivation= | =Motivation= | ||
− | + | Experience with dynamic types. | |
=Code To Use= | =Code To Use= | ||
− | * [https://docs.racket-lang.org/reference/ | + | * [https://docs.racket-lang.org/reference/pairs.html#%28def._%28%28lib._racket%2Fprivate%2Flist..rkt%29._foldl%29%29 foldl] |
− | + | * [https://docs.racket-lang.org/reference/pairs.html#%28def._%28%28lib._racket%2Fprivate%2Flist..rkt%29._foldr%29%29 foldr] | |
− | |||
− | * [https://docs.racket-lang.org/reference/ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=Code To Implement= | =Code To Implement= | ||
− | {{RacketToImplement| | + | {{RacketToImplement|deep_lists|deep-fold<br/>deep-flatten<br/>deep-sum<br/>deep-sum-numbers|deep_lists}} |
− | == | + | ==deep-fold== |
− | + | ==deep-flatten== | |
− | + | ==deep-sum== | |
− | + | ==deep-sum-numbers== | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=Test= | =Test= | ||
− | {{RacketUnitTest| | + | {{RacketUnitTest|deep_lists_test|deep_lists}} |
Revision as of 06:31, 28 March 2022
Contents
Motivation
Experience with dynamic types.
Code To Use
Code To Implement
file: | src/main/racket/deep_lists/deep_lists.rkt | |
functions: | deep-fold deep-flatten deep-sum deep-sum-numbers |
deep-fold
deep-flatten
deep-sum
deep-sum-numbers
Test
file: | deep_lists_test.rkt | Test |
source folder: | src/test/racket/deep_lists |
note: ensure that you have removed all printing to receive credit for any assignment.