Why Nostr? What is Njump?
2024-11-12 10:07:24
in reply to

Wayne Werner on Nostr: npub17m4yk…p2ql6 two words of advice here: - is this a mutable object? Do I want a ...

two words of advice here:

- is this a mutable object? Do I want a copy or to mutate it?
- is this a generic action to take on things?

Like:
I have a string that I want a sorted version. Strings are immutable so I need to sort(some_text)

I have a list of strings that I want sorted, but I don't care about original form. It's mutable so, so some_strings.sort()

Aside: "wrap in a function" is a different kind of phrase!
Author Public Key
npub1hsj5d64e5wkdn5twdsyluftaefggf6gx3dc4plx4nksru55j6gds8q5lqd