Latest #operators Threads 
I am trying to write a macro to define a custom operator
defmacro infix_function(op, function) do
quote do
def (a unquote(op...
New
I’m working on a project right now that makes heavy, heavy use of Decimal. I just hit bug today where >= was used instead of Decimal.c...
New
I wonder if anyone can help me with this one.
Just for the sake of trying something out with my library, I went on to inspect the omitte...
New
iex> map = %{x: 1}
iex> map.x
1
iex> map.x()
1
Why would anyone use the map.x() syntax for getting map value? I’d suggest depre...
New
Hello.
I found a strange behavior of ++ and --.
iex(1)> x = [:a, :b, nil, :c]
[:a, :b, nil, :c]
iex(2)> x -- [:a] -- [:c]
[:b, ni...
New
I think I do not understand something. Can someone explain why this works?
iex> [] ++ {:ok, "好"}
{:ok, "好"}
Is a tuple a list?
New
How does the < work? By accident, in my code, I compared an integer with a list, and it gave me a boolean value as response instead of...
New
I’m failing to grasp what the Bitwise module is doing. The documentation doesn’t have much (see for yourself). I have a decent understand...
New
Is it not a right method to compare naive date time values using basic operators like > and < ?
I get wrong answers when I compare...
New
iex(71)> (["a", "b"] -- ["a"]) ++ ["a"]
["b", "a"]
iex(72)> ["a", "b"] -- ["a"] ++ ["a"]
["b"]
Hi team,
Why having the () makes t...
New
This Week's Trending
This Month's Trending
This Year's Trending
Is it not a right method to compare naive date time values using basic operators like > and < ?
I get wrong answers when I compare...
New
Last Three Year's Trending
I’m failing to grasp what the Bitwise module is doing. The documentation doesn’t have much (see for yourself). I have a decent understand...
New
I’m working on a project right now that makes heavy, heavy use of Decimal. I just hit bug today where >= was used instead of Decimal.c...
New
I am trying to write a macro to define a custom operator
defmacro infix_function(op, function) do
quote do
def (a unquote(op...
New
Trending Over Three Years
In Elixir, operators are also simply functions. A unary operator takes a single argument, a binary infix operator takes two.
It is there...
New
I think I do not understand something. Can someone explain why this works?
iex> [] ++ {:ok, "好"}
{:ok, "好"}
Is a tuple a list?
New
iex(71)> (["a", "b"] -- ["a"]) ++ ["a"]
["b", "a"]
iex(72)> ["a", "b"] -- ["a"] ++ ["a"]
["b"]
Hi team,
Why having the () makes t...
New
Hello.
I found a strange behavior of ++ and --.
iex(1)> x = [:a, :b, nil, :c]
[:a, :b, nil, :c]
iex(2)> x -- [:a] -- [:c]
[:b, ni...
New
How does the < work? By accident, in my code, I compared an integer with a list, and it gave me a boolean value as response instead of...
New
I wonder if anyone can help me with this one.
Just for the sake of trying something out with my library, I went on to inspect the omitte...
New
iex> map = %{x: 1}
iex> map.x
1
iex> map.x()
1
Why would anyone use the map.x() syntax for getting map value? I’d suggest depre...
New
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







