feat(elixir): added query for access_call

This commit is contained in:
Jeremy Capblancq 2023-12-18 17:46:56 -05:00
parent b510fd445b
commit e4fb8bdb28
No known key found for this signature in database
GPG key ID: 984B43C47EE4B41F
2 changed files with 8 additions and 0 deletions

View file

@ -20,6 +20,10 @@
"[" @delimiter
"]" @delimiter @sentinel) @container
(access_call
"[" @delimiter
"]" @delimiter @sentinel) @container
(bitstring
"<<" @delimiter
">>" @delimiter @sentinel) @container

View file

@ -22,6 +22,10 @@ defmodule Regular do
IO.puts "The first value is #{head}"
head + (((1 + (2 + 3))))
end
defp accessLookup(map, x) do
map[map[map[map[x]]]]
end
end
# Keyword list syntactic sugar