Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support 'erlang:phash/2', 'erlang:trunc/1', 'erlang:get/1' and 'erlang:put/2' #68

Closed
mcherep opened this issue Mar 28, 2016 · 2 comments
Assignees

Comments

@mcherep
Copy link
Contributor

mcherep commented Mar 28, 2016

Code example

-spec test_02(Proplist :: [{atom(), atom()}]) -> atom().
test_02([]) ->
  ok;
test_02(Proplist) ->
  Keys = proplists:get_keys(Proplist),
  Index = random:uniform(length(Keys)),
  lists:nth(Index, Keys).

=== BIFs Currently without Symbolic Interpretation ===
erlang:phash/2
erlang:trunc/1
erlang:get/1
erlang:put/2

@kostis
Copy link
Collaborator

kostis commented Mar 28, 2016

Thanks for the example, but most of these have been reported as issues #52, #56 and #57.

Also, the random module will be deprecated in 19.0 and one is supposed to use the rand module instead...

@aggelgian aggelgian self-assigned this Apr 6, 2016
aggelgian added a commit that referenced this issue Apr 6, 2016
aggelgian added a commit that referenced this issue Apr 7, 2016
@kostis
Copy link
Collaborator

kostis commented Apr 30, 2016

I am closing this issue. The part that is not mentioned in other issues (support erlang:trunc/1) is fixed.

@kostis kostis closed this as completed Apr 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants