This module provides an expand_fun for the erlang shell
The standard expansion function is able to expand strings to valid erlang terms. This includes module names:
1> erla modules erlang:
function names:
1> is_ato functions is_atom( 2> erlang:is_ato functions is_atom(
function types:
1> erlang:is_atom( typespecs erlang:is_atom(Term) any()
and automatically add , or closing parenthesis when no other valid expansion is possible. The expand function also completes: shell bindings, record names, record fields and map keys.
As seen below, function headers are grouped together if they've got the same
expansion suggestion, in this case all had the same suggestions, that is '}'.
There is also limited support for filtering out function typespecs that that does
not match the types on the terms on the prompt. Only 4 suggestions are shown below
but there exists plenty more typespecs for
1> erlang:system_info({allocator, my_allocator typespecs erlang:system_info(wordsize | {wordsize, ...} | {wordsize, ...}) erlang:system_info({allocator, ...}) erlang:system_info({allocator_sizes, ...}) erlang:system_info({cpu_topology, ...}) }
The return type of
By setting the
Its possible to set a custom separator between the title and the results. This can be
done with
The