News for hackers. Stuff that matters.
Re:GitHub releases an ImageNet for code and a CodeSearchNet ... by CountHackulus on Friday September 27, 2019 @11:57AM (#21093341)
Code reuse search engines is something that Haskell is excellent for. With Hoogle you can search for a generic type signature and probably find the method you want.

Want to flatten an array of Maybes? Just search for [Maybe a] -> [a] and you'll find catMaybes and takeWhileJust.

This of course only works for Haskell because so much of a function is determined by it's types. Doing this sort of thing in say JavaScript would be an absolute nightmare. Still, it's an interesting train of thought.

There are no comments on this comment yet.