I wrote the function:
rotate_bin_list_right([H|T]) ->
erlang:display(H),
erlang:display(T),
erlang:display([T|H]),
[T|H].
When called with [<<"2">>,<<"3">>,<<"4">>,<<"2">>,<<"3">>,<<"4">>]
, it prints:
<<"2">>
[<<"3">>,<<"4">>,<<"2">>,<<"3">>,<<"4">>]
[[<<"3">>,<<"4">>,<<"2">>,<<"3">>,<<"4">>]|<<"2">>]
I was expecting a "flattened list":
[<<"3">>,<<"4">>,<<"2">>,<<"3">>,<<"4">>,<<"2">>]
What is happening?