XT.Pid (xt v0.1.1) View Source

PID Utilities

Convert pid() to string, tuple, or list.any()

Link to this section Summary

Functions

Convert a pid to a list

Convert a pid to a string

Legacy... Convert a pid to a string

Convert a pid to a tuple

Link to this section Functions

Specs

pid_to_list(pid()) :: list()

Convert a pid to a list

Examples

iex> XT.Pid.pid_to_list(IEx.Helpers.pid(0, 1, 2))
[0, 1, 2]

Specs

pid_to_string(pid()) :: String.t()

Convert a pid to a string

Examples

iex> XT.Pid.pid_to_string(IEx.Helpers.pid(0, 1, 2))
"0.1.2"
Link to this function

pid_to_string_legacy(pid)

View Source

Specs

pid_to_string_legacy(pid()) :: String.t()

Legacy... Convert a pid to a string

Examples

iex> XT.Pid.pid_to_string(IEx.Helpers.pid(0, 1, 2))
"0.1.2"

Specs

pid_to_tuple(pid()) :: tuple()

Convert a pid to a tuple

Examples

iex> XT.Pid.pid_to_tuple(IEx.Helpers.pid(0, 1, 2))
{0, 1, 2}