AlexG
August 29, 2024, 11:30pm
1
I am trying to add some plotting to a program that uses malt - (require malt) - the library that is provided as support to The Little Learner .
Machine Learning Toolkit accompanying The Little Learner by Daniel P. Friedman and Anurag Mendhekar
When I add (require plot), I get the error:
. module: identifier already required
also provided by: malt in: line
Is there some way I can fix this? Using Dr.Racket 8.6 under Ubuntu.
Thanks!
EmEf
August 30, 2024, 12:57am
2
(require (except-in plot line))
would import from plot everything except for line
.
(require (prefix-in p: plot))
would import everything from plot but the module has to use the imported functions with “p:” pre-pended.
1 Like
AlexG
August 30, 2024, 1:33am
3
Thanks very much!
I'd tried using "except-in", but I misunderstood what was causing the conflict. It all makes perfect sense now, I couldn't see what on earth could be clashing in these two modules before. I should use Racket more...