>, <<"b">>, <<"c">>] to ["a", "b", "c"] ? +6 erlang sura2k Dec 27 '11 at 9:46 source...">All geek questions in one placeBinary List to String List - ErlangHow to convert [<<"a">>, <<"b">>, <<"c">>] to ["a", "b", "c"] ?+6erlangsura2k Dec 27 '11 at 9:46source share3 answers[binary_to_list(X) || X <- [<<"a">>, <<"b">>, <<"c">>]]. or in more detail BinList = [<< "a" >>, << "b" >>, << "c" >>], NormalList = [binary_to_list (X) || X <- BinList], NormalList. +8Muzaaya Joshua Dec 27 '11 at 9:52source shareOr using the lists: map / 2: lists:map(fun erlang:binary_to_list/1, [<<"a">>, <<"b">>, <<"c">>]). +5Alin Dec 27 '11 at 10:19source shareyou can do it like this: A=[<<"a">>, <<"b">>, <<"c">>] B=[binary_to_list(Item) || Item <- A] +2Frank fang Dec 27 '11 at 9:53source shareSource: https://habr.com/ru/post/904523/More articles:Implementing goto in ast - pythonDelphi 6 application runs slowly on Windows 7 - performanceMathematica: why does the 3D plot remember the last point of view / rotation it made, even after evaluating it again? - wolfram-mathematicagoto expression in antlr? - parsingMake sure the property cannot return null - nullIs there a way to protect Unit test names that follow the MethodName_Condition_ExpectedBehaviour pattern against refactoring? - c #Caught TypeError on rendering: __init __ () received an unexpected keyword argument to 'use_decimal' - jqueryAdding values ββfrom C # to DIV via JavaScript - javascriptDisallow thread creation in AppDomain - multithreadinghttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/904528/is-there-any-way-in-grails-to-eager-fetch-the-whole-record&usg=ALkJrhgbDjSFoN-nDpD2ioer0qJVsUClNAAll Articles
How to convert [<<"a">>, <<"b">>, <<"c">>] to ["a", "b", "c"] ?
[<<"a">>, <<"b">>, <<"c">>]
["a", "b", "c"]
[binary_to_list(X) || X <- [<<"a">>, <<"b">>, <<"c">>]]. or in more detail
[binary_to_list(X) || X <- [<<"a">>, <<"b">>, <<"c">>]].
BinList = [<< "a" >>, << "b" >>, << "c" >>], NormalList = [binary_to_list (X) || X <- BinList], NormalList.
Or using the lists: map / 2:
lists:map(fun erlang:binary_to_list/1, [<<"a">>, <<"b">>, <<"c">>]).
you can do it like this:
A=[<<"a">>, <<"b">>, <<"c">>] B=[binary_to_list(Item) || Item <- A]
Source: https://habr.com/ru/post/904523/More articles:Implementing goto in ast - pythonDelphi 6 application runs slowly on Windows 7 - performanceMathematica: why does the 3D plot remember the last point of view / rotation it made, even after evaluating it again? - wolfram-mathematicagoto expression in antlr? - parsingMake sure the property cannot return null - nullIs there a way to protect Unit test names that follow the MethodName_Condition_ExpectedBehaviour pattern against refactoring? - c #Caught TypeError on rendering: __init __ () received an unexpected keyword argument to 'use_decimal' - jqueryAdding values ββfrom C # to DIV via JavaScript - javascriptDisallow thread creation in AppDomain - multithreadinghttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/904528/is-there-any-way-in-grails-to-eager-fetch-the-whole-record&usg=ALkJrhgbDjSFoN-nDpD2ioer0qJVsUClNAAll Articles