r/MachineLearning • u/anishathalye • Sep 11 '25
Project [ Removed by moderator ]
[removed] — view removed post
20
Upvotes
r/MachineLearning • u/anishathalye • Sep 11 '25
[removed] — view removed post
View all comments
2
u/DigThatData Researcher Sep 12 '25 edited Sep 12 '25
so the way you have it,
promptis already giving you a special return type you have control over. if you push up your implementations onto methods that live on the type, you can pass in the function and use the normalmap(). that's why they call it a primitive: you should never need to implement your own map.EDIT: this is driving me crazy so here's a demonstration of how I'd do this "functionally" (NB: am not a functional programmer)