Email or username:

Password:

Forgot your password?
Top-level
Chip Butty

@plexus I'm a bit torn there as I often use sorted-sets as lists (like a vector I ran distinct on). I do also use them as predicates. I think the naming depends on what I think I'm going to use them for, which isn't necessarily great.

1 comment
Arne Brasseur

@otfrom I think it does depend on what you're using it for, and I think that's fine. That's also why I said "where appropriate".

I think naming them as a function/predicate means that you're conceptually thinking of them as a function, it just happens to be implemented as a simple membership check at the moment.

The same can also apply to maps.

Go Up