17
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Kernel.make_ref/0refを作ることができます。

例えばテストコードの中でダミーrefを作りたい場合にも使えます。

make_ref()

IExの中でrefを作りたい場合はIEx.Helpers.ref/1IEx.Helpers.ref/4が便利。

iex

iex> ref("0.1.2.3")
#Reference<0.1.2.3>

iex> ref(0, 1, 2, 3)
#Reference<0.1.2.3>

refに出くわすことはあまりありませんが、例えばIoT開発で他のデバイスとI2Cで通信するときに登場します。

元氣ですかーーーーッ!!!

ご参考までに

17
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?