Skip to content

data-miner00/droplet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Droplet

A sandbox project to dip my toes in the Elixir ecosystem.

Usage

To run the interactive Elixir shell, type iex in the terminal.

Interactive Elixir (1.13.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> 0xff
255
iex(2)> 0xff + 0x02
257

To check for a type of a variable, prefix with i<space> in the interactive shell.

iex(1)> i 10_000

Term
  10000
Data type
  Integer
Reference modules
  Integer
Implemented protocols
  IEx.Info, Inspect, List.Chars, String.Chars

To run a script file, use the elixir command with the targeted script file.

elixir example.exs

Linting

To lint the source code, use credo.

mix credo

Install dependencies

Specify the dependencies in mix.exs. The dependencies can be browsed through hex.pm website.

mix deps.get

Installation

If available in Hex, the package can be installed by adding droplet to your list of dependencies in mix.exs:

def deps do
  [
    {:droplet, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/droplet.

Compile Elixir Script

To compile an Elixir script file and run it, use elixirc followed by the script file.

elixirc hello.exs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages