Arrays in the scheme / Memoization

How can I use arrays in a circuit?

In particular, I am trying to implement a recursive fibonacci routine using memoization. Do arrays exist in the schema?

If not, how can I implement memoization?

+3
source share
2 answers

Scheme has arrays, but they are called vectors . Keep in mind that they do not change in the same way as in other languages, such as Perl and Javascript, or a similar C ++ thing; you have to do more and copy the contents of the obsolete.

memoization , 12 .

+5

, downvote ..: PLT, memoization, Dave Herman memoize. , memoize .

+1

Source: https://habr.com/ru/post/1748015/


All Articles