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
from is unsafe (not soundly typed), but not marked as such
So is fromWithMap. It's also misleadingly named, suggesting it takes a Map data structure as an additional argument, when in fact it wants a map function. The latter goes for all *WithMap functions, but I won't repeat myself for every one of them. A better naming scheme for these might be mapFrom*?
*WithIndex is a really common and quite verbose pattern. I would suggest special casing this and use just an i suffix for this, e.g. mapi instead of mapWithIndex. I think it's common enough that this makes sense.
indexOfFrom and lastIndexOfFrom are not very intuitively named. Perhaps indexOfStartingFrom would be better?
getSymbol seems like it would return a symbol, rather than what is pointed to by a symbol. getBySymbol and setBySymbol might be better names.
fromis unsafe (not soundly typed), but not marked as suchfromWithMap. It's also misleadingly named, suggesting it takes aMapdata structure as an additional argument, when in fact it wants a map function. The latter goes for all*WithMapfunctions, but I won't repeat myself for every one of them. A better naming scheme for these might bemapFrom*?*WithIndexis a really common and quite verbose pattern. I would suggest special casing this and use just anisuffix for this, e.g.mapiinstead ofmapWithIndex. I think it's common enough that this makes sense.indexOfFromandlastIndexOfFromare not very intuitively named. PerhapsindexOfStartingFromwould be better?getSymbolseems like it would return a symbol, rather than what is pointed to by a symbol.getBySymbolandsetBySymbolmight be better names.