[erlang-questions] STRCMP or something like that

Evren Bayraktar <>
Tue Dec 25 07:24:32 CET 2012


Teşekkürler Gökhan abi, daha syntax'a bile alışmamışken verdiğin 
bilgiler çok yardımcı olacak. Eğer yeni başlayanlar için önerebileceğin 
kaynaklar var ise seve seve incelemek isterim. Linkedin üzerinde 
paylaştığın slide'ı gördüm, erlang beni daha da heyecanlandırdı.

Thank you Loïc , I didn't imagine how erlang works so easy and 
wonderfull :) I guess, I will fall in love with this language :)


On 24-12-2012 16:42, Kunthar wrote:
> Evren Pasa
>
> - Yoluna devam etmeden once Erlang library'lerini iyie bir incelemeni
> tavsiye ederim.
>
> Ne tur seceneklerin oldugunu hizlica anlamak icin, konsolda
> lists:
> yazarak TAB'e basarsan lists modulu ile tanimlanmis tum fonksiyonlari
> gorebilirsin.
>
> - eger hic bir sey yazmadan TAB'e basarsan, derlenmis tum modulleri gorursun.
>
> kolay gelsin.
>
>
> $ kunthar : erl
> Erlang R15B02 (erts-5.9.2) [source] [64-bit] [smp:4:4]
> [async-threads:0] [hipe] [kernel-poll:false]
>
> Eshell V5.9.2  (abort with ^G)
> 1> lists:
> all/2          any/2          append/1       append/2       concat/1
> delete/2       dropwhile/2    duplicate/2    filter/2       flatlength/1
> flatmap/2      flatten/1      flatten/2      foldl/3        foldr/3
> foreach/2      keydelete/3    keyfind/3      keymap/3       keymember/3
> keymerge/3     keyreplace/4   keysearch/3    keysort/2      keystore/4
> keytake/3      last/1         map/2          mapfoldl/3     mapfoldr/3
> max/1          member/2       merge/1        merge/2        merge/3
> merge3/3       min/1          module_info/0  module_info/1  nth/2
> nthtail/2      partition/2    prefix/2       reverse/1      reverse/2
> rkeymerge/3    rmerge/2       rmerge/3       rmerge3/3      rukeymerge/3
> rumerge/2      rumerge/3      rumerge3/3     seq/2          seq/3
> sort/1         sort/2         split/2        splitwith/2    sublist/2
> sublist/3      subtract/2     suffix/2       sum/1          takewhile/2
> ukeymerge/3    ukeysort/2     umerge/1       umerge/2       umerge/3
> umerge3/3      unzip/1        unzip3/1       usort/1        usort/2
> zf/2           zip/2          zip3/3         zipwith/3      zipwith3/4
>
> 1> lists:
>
>
>
> On Mon, Dec 24, 2012 at 4:34 PM, Loïc Hoguin <> wrote:
>> 1> lists:sort(["alicia", "alex"]).
>> ["alex","alicia"]
>>
>> :)
>>
>>
>> On 12/24/2012 03:28 PM, Evren Bayraktar wrote:
>>> Hi everyone,
>>>
>>> I'm having trouble with Erlang  I hope someone can help me. I'm really
>>> newbie in Erlang :)
>>>
>>> I need to something like strcmp in php.
>>>
>>> For example;
>>>
>>> I have a two different string, Alicia and Alex. I need to steady order
>>> for them. By parsing each letter I guess I can do that.
>>>
>>> $A. returns 65 so I can't compare with first letters then $l. returns
>>> 108 but they are same too.
>>> Now, $e. returns 101 and $i. returns 105. By using this numbers I can
>>> give correct order, first Alex then Alica.
>>>
>>> I mean, imagine a function which compare two different variable, by
>>> using their ascii codes it will return
>>> correct order.
>>>
>>> Function("alicia", "alex") ---> will return alex+alicia
>>>
>>> I hope someone will help me
>>>
>>> Best Regards
>>> Evren
>>>
>>>
>>>
>>> _______________________________________________
>>> erlang-questions mailing list
>>> 
>>> http://erlang.org/mailman/listinfo/erlang-questions
>>>
>>
>> --
>> Loïc Hoguin
>> Erlang Cowboy
>> Nine Nines
>> http://ninenines.eu
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://erlang.org/mailman/listinfo/erlang-questions
>
>




More information about the erlang-questions mailing list