Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defmodule Aaa do
- def call(block \\ nil) do
- IO.puts("hi")
- if block do
- block.call
- end
- end
- def block_to_call do
- IO.puts "called"
- end
- end
- block=&Aaa.block_to_call()
- Aaa.call(block)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement