Packages

Validate quoted Elixir AST against a function whitelist

Current section

Files

Jump to
loppers lib list.ex
Raw

lib/list.ex

defmodule Loppers.List do
def in_list?(ast, list) do
Enum.any?(list, &Loppers.Match.matches?(ast, &1))
end
end