Wednesday, May 10, 2017

It's a notes about Erlang. Do you know how do quicksort works in Erlang?

Hello, my friends!

Do you know how do quicksort works in Erlang? I created a test code for this.




























It's a result in Erlang VM (BEAM):

bodro@vbodrov-pc:~/workspace/develop/test/test60$ erl
Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:8:8] [async-threads:10] [kernel-poll:false]

Eshell V7.3  (abort with ^G)
1> c(test).
{ok,test}
2> test:test_a().
[-10000,-7,0,0,1,2,3,4,4,5,6,6,7,8,9,25,100,104,1000]
3> test:test_d().
[1000,104,100,25,9,8,7,6,6,5,4,4,3,2,1,0,0,-7,-10000]
4> q().
ok
5> bodro@vbodrov-pc:~/workspace/develop/test/test60$

Best regards,
Vasiliy V. Bodrov aka Bodro,
the 10-th of May, 2017 year.


No comments:

Post a Comment

How to reverse singly linked list in C (trivial way)

There is a beautiful morning. It's snowing. And I decided to write one more article. Today it will be just simple article where I would...