We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80c09f6 commit 2341b8cCopy full SHA for 2341b8c
sigils.exs
@@ -0,0 +1,15 @@
1
+# Useful when a string contains double quotes
2
+sigil = ~s(this is a string with "double" quotes, not 'single' ones)
3
+
4
+IO.puts sigil
5
6
+# Useful when a string contains single quotes
7
+sigil2 = ~c(this is a char list containing 'single quotes')
8
9
+IO.puts sigil2
10
11
+# Accepts the c (chars), s (strings) and a (atoms) modifiers
12
+sigil3 = ~w(foo bar)
13
+sigil4 = ~w(foo bar bat)a
14
15
+IO.puts sigil3
0 commit comments