.t() Elixir

[Solved] .t() Elixir | Elixir - Code Explorer | yomemimo.com
Question : .t() elixir

Answered by : tom-zk99pilqv6hu

It's not a property. Basically it's a reference to “string” type which is being used by functions from Elixir's String module. To fully understand it please read more here.
One reason for using String.t() is that Elixir discourages the use of string(). A string() is a "charlist" in Elixir, while String.t() is a UTF-8 encoded binary.

Source : | Last Update : Wed, 01 Dec 21

Answers related to .t() elixir

Code Explorer Popular Question For Elixir