v
Size: a a a
v
LW
LW
AG
; thread last on sequencies
(->> [1 2 3 4 5]
(map (partial * 2))
(filter even?))
; thread first on maps
(-> {}
(assoc :a 1 :b 2 :c 3) ;; {:a 1 :b 2 :c 3}
(dissoc :b :c))
=> {:a 1}
AG
(-> "a b c d"
.toUpperCase
(.replace "A" "X")
(.split " ")
first)
AG
VV
mnesia:system_info/1
?YZ
YZ
YZ
В
Erlang logger integration
Since OTP 21, Erlang has had its own logger, but Elixir hasn’t been using that - until now! Starting with Elixir 1.10, Elixir will use Erlang’s logger instead of its own logger as the backend to the Logger module. This is possible because Elixir 1.10 requires OTP 21.0 or greater, which means we know that Erlang’s logger will be available to us.
VS
so_reuseport =
case :os.type() do
{:unix, :linux} -> {:raw, 1, 15, <<1::32-native>>}
{:unix, :darwin} -> {:raw, 0xffff, 0x0200, <<1::32-native>>}
end
СИ
СИ
Erlang logger integration
Since OTP 21, Erlang has had its own logger, but Elixir hasn’t been using that - until now! Starting with Elixir 1.10, Elixir will use Erlang’s logger instead of its own logger as the backend to the Logger module. This is possible because Elixir 1.10 requires OTP 21.0 or greater, which means we know that Erlang’s logger will be available to us.
VS
VS
СИ
СИ
a
a