Strcmp

strcmp(<<>>, <<>>) -> 0;
strcmp(<<>>, <<_A:1/binary, _Rest/binary>>) -> -1;
strcmp(<<_A:1/binary, _Rest/binary>>, <<>>) -> 1;
strcmp(<<A:1/binary, Rest/binary>>, <<A:1/binary, Rest2/binary>>) -> strcmp(Rest, Rest2);
strcmp(<<A:1/binary, _Rest/binary>>, <<B:1/binary, _Rest2/binary>>) when A < B -> - 1;
strcmp(<<_A:1/binary, _Rest/binary>>, <<_B:1/binary, _Rest2/binary>>) -> 1.
 
14
Kudos
 
14
Kudos

Now read this

Ownership as code

In software development, ownership is a term that’s often thrown around but poorly understood. What does it mean to own something? Why is this something we strive to attain? At Samsung Ads, the engineering team had been growing very... Continue →