erlang - Using Chicagoboss boss_db and printing list of records -


I'm trying to print a list of records from Manisa.

  users = boss_db: ({[_, email, _, _, _, _, accesspoint}] = X, io: format ("email: ~ w ~ n", [email ]), Io: format ("AccessToken: ~ w ~ n", [AccessToken]), end, [user]).  

Although I'm getting:

Email: [117,115,101, .., ..,., ..]

Similar approach for .

What am I missing? Any pointer will be really appreciated.

You have not selected the correct format: ~ w used to print the word as erlang Goes to ~ s string, ~ p for beautiful print, it tries to find the best way to print. Doctor

  1> L = "Hello" "Hello" 2> When: Format ("~ w ~ n", [L]). [72,101,108,108,111] fine 3> When: Format ("~ P ~ n", [L]). "Hello" OK 4 & gt; When: format ("~ s ~ n", [L]). Hello fine 5> L1 = [1,2,3,4,5] [1,2,3,4,5] 6 & gt; When: Format ("~ w ~ n", [L1]). [1,2,3,4,5] right 7> When: Format ("~ P ~ n", [L1]). [1,2,3,4,5] fine 8 & gt; When: format ("~ s ~ n", [L1]). ^ A ^ b ^ c ^ d ^ e oak 9 & gt;  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -