Created
May 10, 2023 10:17
-
-
Save katafrakt/d4817b97c357ea9ff297f94ad938ec5f to your computer and use it in GitHub Desktop.
Revisions
-
katafrakt created this gist
May 10, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ defmodule IexHelpers do def search_fn(name) do :code.all_loaded() |> Enum.filter(fn {mod, _} -> "#{mod}" =~ ~r{^[A-Z]} end) |> Enum.map(fn {mod, _} -> mod end) |> Enum.each(fn mod -> mod.__info__(:functions) |> Enum.each(fn {fun_name, arity} -> if fun_name == name do IO.puts "#{mod}.#{fun_name}/#{arity}" end end) end) end end