Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Erlang library which can tell us which function is Erlang auto imported BIF (is_atom/1, is_list/1, etc) or not.

License

Notifications You must be signed in to change notification settings

pouriya/is_auto_imported_bif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

is_auto_imported_bif

How to use

Erlang/OTP 19 [erts-8.3] [source-d5c06c6] [64-bit] [smp:8:8] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V8.3  (abort with ^G)

1> is_auto_imported_bif:is(is_atom, 1).
true

2> is_auto_imported_bif:is(erlang, list_to_binary, 2).
true

3> is_auto_imported_bif:is(is_process_alive, 1).
true

4> localtime(). %% Does not export from erlang module and you have to call erlang:localtime()
** exception error: undefined shell command localtime/0

5> erlang:localtime().
{{2017,8,24},{16,40,53}}

6> is_auto_imported_bif:is(localtime, 0).
false

7> Fun = fun erlang:disconnect_node/2.
#Fun<erlang.disconnect_node.2>

8> is_auto_imported_bif:is(Fun).
true

I used this in one of my library in parsing Erlang's ASTs.

About

Erlang library which can tell us which function is Erlang auto imported BIF (is_atom/1, is_list/1, etc) or not.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages