官术网_书友最值得收藏!

  • Phoenix Web Development
  • Brandon Richey
  • 98字
  • 2021-08-27 18:28:22

Getting more information with the h helper

IEx also provides us with another incredibly helpful built-in function: h. Similar to i, h has two arities available for us to use: h/0, which displays the help page for IEx, and h/1, which displays the help for a particular module. So, while the following example won't work:

iex(5)> h 5
Invalid arguments for h helper: 5

This following example will:

iex(6)> h Integer
Integer

Functions for working with integers.

Using i and h effectively will go a long way towards helping us understand more of Elixir as we go along!

主站蜘蛛池模板: 长泰县| 裕民县| 比如县| 故城县| 柏乡县| 汉沽区| 聂荣县| 营山县| 平舆县| 苍山县| 江西省| 通河县| 巴里| 略阳县| 鹿邑县| 门源| 尉犁县| 曲阜市| 应用必备| 和平县| 成安县| 京山县| 伽师县| 进贤县| 邵阳县| 淳化县| 宣汉县| 长海县| 威远县| 大城县| 兴国县| 西充县| 宜良县| 龙胜| 乳源| 休宁县| 慈利县| 淄博市| 平邑县| 开化县| 浑源县|