Codebase list ohcount / run/8fccc97f-1091-4606-8a80-1b8fb386766a/main test / expected_dir / standard_crystal.cr
run/8fccc97f-1091-4606-8a80-1b8fb386766a/main

Tree @run/8fccc97f-1091-4606-8a80-1b8fb386766a/main (Download .tar.gz)

standard_crystal.cr @run/8fccc97f-1091-4606-8a80-1b8fb386766a/mainraw · history · blame

crystal	comment	#comment
crystal	comment	  # comment with "string"
crystal	blank	
crystal	code	class Rest
crystal	code	  def one
crystal	code	    two do |c|
crystal	code	      puts c
crystal	code	    end
crystal	code	  end
crystal	blank	
crystal	code	  def two(&block : Int32 -> _)
crystal	code	    three { |x| yield x }       # yield is faster than passing blocks.
crystal	code	  end
crystal	blank	
crystal	code	  def three
crystal	code	    yield 3
crystal	code	  end
crystal	code	end
crystal	blank	
crystal	code	Rest.new.one