In Motoko, does HashMap<Text, File> gives value or reference when doing get(Key)?

Whatever is more efficient, usually by reference, but you can’t tell the difference, and that’s by design. See my answers here and here.

1 Like