Packages

Module that allow to run interactive shell processes and interact with them mimicking a human input/output interaction

Current section

Files

Jump to
pish_ex lib pish_helpers.ex
Raw

lib/pish_helpers.ex

defmodule Pish.Helpers do
def regex?(value), do: Kernel.is_struct(value, Regex)
# First non null value
def fnnv([]), do: nil
def fnnv([h | _]) when h != nil and h != false and h != "", do: h
def fnnv([_ | t]), do: fnnv(t)
end