You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What is the proper way of exporting a generic function?
Suppose I have a generic function like this:
How should I pass the function to
interp.Exports
map?Should I write my own wrapper which will check types on runtime? Something like this:
Or is there a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions