Thanks, I forgot to save it after debug. Now it works. On Sunday, July 10, 2016 at 9:38:49 PM UTC-4, gmhwxi wrote: > > Please change > > memo1 > > to > > memo1<int, int> > > Also, please delete the line "staload .../gorder_int.dats" > > On Sunday, July 10, 2016 at 9:15:10 PM UTC-4, Steinway Wu wrote: >> >> Hi, >> >> In a practice, I encountered a problem of memorizing functions. Given a >> function `f`, a memorized version of `f`, called `memo f` should cache the >> results of `f` applying on some `input`. I tried a demo here >> https://glot.io/snippets/egflakau5h, which shows a generic >> implementation of the function `memo0` (for memorizing a function of no >> arguments) and `memo1` (for memorizing a function with one argument). >> Comments are welcomed. >> >
-- You received this message because you are subscribed to the Google Groups "ats-lang-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/ats-lang-users. To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/adda145a-e119-4431-b72b-b948702fa13f%40googlegroups.com.
