Editing
Elixir Standard Library
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Elixir Standard Library == The Elixir Standard Library is a core part of the Elixir programming language. It provides a wide range of modules and functions that are available out-of-the-box for Elixir developers to use in their applications. These modules cover various areas such as data structures, file handling, string manipulation, process management, and more. === Data Structures === The Elixir Standard Library offers a diverse set of data structures that are commonly used in Elixir programming, including: * [https://elixir-lang.org/docs/stable/elixir/Agent.html Agent]: A simple and convenient way to manage state within Elixir applications. * [https://elixir-lang.org/docs/stable/elixir/Dict.html Dict]: A key-value data structure implemented as an ordered list of key-value pair entries. * [https://elixir-lang.org/docs/stable/elixir/List.html List]: Provides functions for working with lists, such as appending, prepending, filtering, and more. * [https://elixir-lang.org/docs/stable/elixir/Map.html Map]: An unordered key-value store with constant time access for reading, updating, and deleting keys. * [https://elixir-lang.org/docs/stable/elixir/Queue.html Queue]: A FIFO (First-In-First-Out) data structure for managing a collection of elements. === File Handling === The Elixir Standard Library includes modules for various file operations, making it easy to work with files and directories: * [https://elixir-lang.org/docs/stable/elixir/File.html File]: Provides functions for reading, writing, and manipulating files on the filesystem. * [https://elixir-lang.org/docs/stable/elixir/File.Stream.html File.Stream]: A module for reading files as streams, allowing efficient processing of large files. * [https://elixir-lang.org/docs/stable/elixir/Path.html Path]: Functions for working with file paths, including path concatenation, expansion, and manipulation. === String Manipulation === Manipulating and transforming strings is made simple with the help of the Elixir Standard Library's string modules: * [https://elixir-lang.org/docs/stable/elixir/String.html String]: Provides a comprehensive set of functions for working with and manipulating strings. * [https://elixir-lang.org/docs/stable/elixir/String.Chars.html String.Chars]: Implements the `to_string/1` protocol and provides functions for generating and parsing strings. * [https://elixir-lang.org/docs/stable/elixir/StringIO.html StringIO]: A module for creating and manipulating in-memory strings as if they were files. === Process Management === Managing concurrent processes and leveraging Elixir's lightweight concurrency model becomes easier with the Elixir Standard Library's process-specific modules: * [https://elixir-lang.org/docs/stable/elixir/Task.html Task]: A module for managing and executing asynchronous tasks concurrently. * [https://elixir-lang.org/docs/stable/elixir/GenServer.html GenServer]: An OTP behavior that allows you to define servers with a standardized API and built-in error handling and state management. * [https://elixir-lang.org/docs/stable/elixir/Registry.html Registry]: Provides a centralized registry for named processes, allowing efficient process lookups by name. === Additional Modules === In addition to the above-mentioned modules, the Elixir Standard Library contains many more modules that serve various purposes: * [https://elixir-lang.org/docs/stable/elixir/DateTime.html DateTime]: Provides functions for working with date and time values. * [https://elixir-lang.org/docs/stable/elixir/Enum.html Enum]: Offers a comprehensive set of functions for working with enumerables such as lists, maps, and streams. * [https://elixir-lang.org/docs/stable/elixir/IO.html IO]: A module for performing input and output operations, including reading from and writing to streams. For a complete list of modules and functions available in the Elixir Standard Library, refer to the official [https://elixir-lang.org/docs/stable/elixir/ Elixir documentation].
Summary:
Please note that all contributions to Elixir Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Elixir Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information