1
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.

paiza.ioでelixirAdvent Calendar 2022

Day 24

paiza.ioでelixir その24

Last updated at Posted at 2022-10-29

概要

paiza.ioでelixirやってみた。
defmacro使ってみた。

参考にしたページ

サンプルコード

defmodule Sample0 do
	defmacro test() do
		{:hello, [], nil}
	end
end
defmodule Main do
	require Sample0
	import Sample0
	def hello() do
	    IO.puts "Hello World!!"
	end
	def main() do
		test()
	end
end

Main.main



実行結果

Hello World!!

成果物

以上。

1
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
1
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?