Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Elixir utility to safely convert string an atom in set

NotificationsYou must be signed in to change notification settings

JohnJocoo/to_atom_in

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Small utility to safely convert strings to a limited set of atoms.

requireTAITAI.to_atom_in("world",[:hello,:world]):world
importTAIto_atom_in("world",~w(hello world)a):world
importTAIto_atom_in("three",~w(one two)a)# ** (ArgumentError) The atom three is not in the [:one, :two]

Installation

The package can be installedby addingto_atom_in to your list of dependencies inmix.exs:

defdepsdo[{:to_atom_in,"~> 0.1.0"}]end

The docs canbe found athttps://hexdocs.pm/to_atom_in.

About

Elixir utility to safely convert string an atom in set

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp