P
Size: a a a
P
P
LL
PG
P
VS
do
Е
throw catch
AB
with do
# разрешены все обычные выражения
res = foo(...)
# дополнительно такие формы со стрелкой
# если матчинг не прошел, отправляемся в else
{:ok, val} <- bar(res, ...)
# возвращается последнее выражение
ololo(val)
else
# разбор ошибочек, как и в стандартном with
{:error, _} -> ...
end
PG
AB
warning: the Collectable protocol is deprecated for non-empty lists. The behaviour of things like Enum.into/2 or "for" comprehensions with an :into option is incorrect when collecting into non-empty lists. If you're collecting into a non-empty keyword list, consider using Keyword.merge/2 instead. If you're collecting into a non-empty list, consider concatenating the two lists with the ++ operator.
AB
AB
PG
AB
AB
AB
def into(enumerable, collectable, transform) when is_list(collectable) do
collectable ++ map(enumerable, transform)
end
ev
PG
AB
ev