Defining Constants In Elixir Module

[Solved] Defining Constants In Elixir Module | Elixir - Code Explorer | yomemimo.com
Question : defining constants in elixir module

Answered by :

defmodule MyModule do @my_favorite_number 13
end

Source : https://stackoverflow.com/questions/33851536/how-do-you-define-constants-in-elixir-modules | Last Update : Sat, 29 May 21

Answers related to defining constants in elixir module

Code Explorer Popular Question For Elixir