Advertisement
Guest User

Untitled

a guest
May 5th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. defmodule Aaa do
  2. def call(block \\ nil) do
  3. IO.puts("hi")
  4.  
  5. if block do
  6. block.call
  7. end
  8. end
  9.  
  10. def block_to_call do
  11. IO.puts "called"
  12. end
  13. end
  14.  
  15. block=&Aaa.block_to_call()
  16. Aaa.call(block)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement