简体   繁体   中英

Equivalent of IO.inspect function that just returns string instead of printing given list, map or keyword list?

Elixir newbie here. I've been trying to convert KeywordList into a string. I can do so with

IO.inspect([name: "John Doe"])

but it prints the string to console. Is there a function that just returns the string?

inspect([name: "John Doe"])

它由内核模块定义,因此会自动导入。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM