Oh yeah, FWIW a "built-in" function or macro just means it's a part of the Kernel module, which is automatically required+imported in Elixir modules. So it's not orphaned, it's just in the one special module that gets brought in by default.
Re:A Week with Elixir (Joe Armstrong)
by giraffe_lady on Thursday May 30, 2024 @10:34PM
(#40530927)
Ahh, that's it. I said in a sibling comment that I had no idea why it was like that. But reading this made me realize that at one point I did know why! Completely forgot this bit of knowledge in the last year of not using the language.
tuple_size/1 is a guard, and guards are built-in. The compiler itself uses them. Unlike regular functions, you are allowed to use guards in a function head, like:
Official docs: https://hexdocs.pm/elixir/1.16.3/patterns-and-guards.html#gu...