• fancyl@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    5 months ago

    This is exciting! I’ll keep this in my back pocket next time I need to map a static Java method over a collection.

    Does this addition also make it possible to keep a Java instance method in a map to call later? That’s not a good way to explain it. But I’m thinking of how Malli schemas can have a map of options like {:encode/json name}.

    With this addition, could I do {:encode/json .toString} where previously I’d need to wrap it with an anonymous function?