I am aware of String.strip/2
, but I cannot figure out its usage for removing whitespaces.
String.strip "_some_", ?_ #=> "some"
If the string had whitespaces instead of _, how does one strip them? Also, it would be great if someone can explain what ? means here.
The @ symbol in Elixir denotes module attributes, which are useful compile-time settings. You often see them in places where you might put class constants in an OO language.
This is the pipe operator. From the linked docs: This operator introduces the expression on the left-hand side as the first argument to the function call on the right-hand side. Examples.
Elixir is used by a ton of companies: Adobe used Elixir to build a client/cloud application for a collaborative photography workflow. Discord uses Elixir for their large-scale messaging system that you have probably heard about.
A Design Exchange Format (DEF) file contains the design-specific information of a circuit and is a representation of the design at any point during the layout process. The DEF file is an ASCII representation using the syntax conventions described in "Typographic and Syntax Conventions".
The question mark preceding a character returns its codepoint, it's mentioned in this section of the getting started guide: http://elixir-lang.org/getting-started/binaries-strings-and-char-lists.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With