Codebase list ohcount / upstream/4.0.0+git20210223.6654d48 test / src_dir / standard_crystal.cr
upstream/4.0.0+git20210223.6654d48

Tree @upstream/4.0.0+git20210223.6654d48 (Download .tar.gz)

standard_crystal.cr @upstream/4.0.0+git20210223.6654d48raw · 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