-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add induceJust #202
Comments
Like What we could do is to have a type-safe version of induceJust :: Ord a => AdjacencyMap (Maybe a) -> AdjacencyMap a Will that work for you? |
That would certainly work! |
Also, I've realised that I can work with |
Er no, scratch that, I need to do my SCC computation before I map and induce, so I do care about |
@michaelpj Great, I'll try to add Regarding |
Is it still relevant? I could try contributing it if nobody is working on it |
@Avasil Yes, it's still relevant! Please go ahead :) |
@michaelpj Thanks to @Avasil, we now have |
Thanks! |
From http://hackage.haskell.org/package/witherable-0.3
Given that we can't currently have a graph with a separate key type (#141), I'm constructing a graph of keys, and then I want to map over the graph looking up the value of the key, to get a graph of values.
However, lookup is naturally
a -> Maybe b
, an so even with aFunctor
instance (#201) I'd still have aGraph (Maybe value)
.Having
filter
/mapMaybe
/catMaybes
seems like an fine solution. We could either add them as simple functions or use theFilterable
class.The text was updated successfully, but these errors were encountered: