intern

Function intern 

Source
pub fn intern(key: &str) -> Symbol
Expand description

Interns the given string slice and returns a Symbol representing it.

If the string was already interned, returns the existing Symbol. Otherwise, stores the string and returns a new Symbol pointing to it.

ยงExample

use asylum;

let sym = asylum::intern("hello");