Codebase list ohcount / 81a9b407-9b9f-4b49-8972-ed3f6d30059f/main test / src_dir / standard_crystal.cr
81a9b407-9b9f-4b49-8972-ed3f6d30059f/main

Tree @81a9b407-9b9f-4b49-8972-ed3f6d30059f/main (Download .tar.gz)

standard_crystal.cr @81a9b407-9b9f-4b49-8972-ed3f6d30059f/mainraw · history · blame

#comment
  # comment with "string"

class Rest
  def one
    two do |c|
      puts c
    end
  end

  def two(&block : Int32 -> _)
    three { |x| yield x }       # yield is faster than passing blocks.
  end

  def three
    yield 3
  end
end

Rest.new.one