Codebase list ohcount / upstream/latest test / src_dir / standard_crystal.cr
upstream/latest

Tree @upstream/latest (Download .tar.gz)

standard_crystal.cr @upstream/latestraw · 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