Skip to content

Instantly share code, notes, and snippets.

@tverlaan
Created February 2, 2020 07:13
Show Gist options
  • Save tverlaan/fbc75f0c15db54708d2f86ec88a8a6e0 to your computer and use it in GitHub Desktop.
Save tverlaan/fbc75f0c15db54708d2f86ec88a8a6e0 to your computer and use it in GitHub Desktop.
fuzzy elixir function documentation search
iex> z foo
No function like 'foo' was found
iex> z into
Did you mean one of?
Collectable.BitString.into()
Collectable.File.Stream.into()
Collectable.HashDict.into()
Collectable.HashSet.into()
Collectable.IO.Stream.into()
Collectable.List.into()
Collectable.Map.into()
Collectable.MapSet.into()
Enum.into()
Stream.into()
iex> z recompile
def recompile(regex)
@spec recompile(t()) :: t()
since: 1.4.0
Recompiles the existing regular expression if necessary.
This checks the version stored in the regular expression and recompiles the
regex in case of version mismatch.
iex>
@tverlaan
Copy link
Author

tverlaan commented Feb 2, 2020

iex> z split
Did you mean one of?
Keyword.split()
Enum.split()
Regex.split()
Map.split()
String.split()
Path.split()
Module.split()
OptionParser.split()
Dict.split()
HashDict.split()
:lists.split()
:filename.split()
:queue.split()
:proplists.split()
:binary.split()
:string.split()
:re.split()
Enum.split_with()
Enum.split_while()
String.splitter()
String.split_at()
Hex.enum_split_with()
String.Break.split()
:erlang.split_binary()
:lists.splitwith()
String.Unicode.split_at()
:prim_zip.splitter()
:inet_parse.split_line()
:elixir_utils.split_last()
:beam_ssa.split_blocks()
:beam_utils.split_even()
Mix.Dep.Loader.split_by_env_and_target()
iex> recompile
Compiling 1 file (.ex)
:ok
iex> z split  
Did you mean one of?
Keyword.split()
Enum.split()
Regex.split()
Map.split()
String.split()
iex> z distance
Did you mean one of?
String.jaro_distance()
String.bag_distance()
iex> z filter
Did you mean one of?
Enum.filter()
Access.filter()
Stream.filter()
:lists.filter()
:ets.filter()
iex> 

More or less results?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment