Codebase list ohcount / c865d4db-f4b2-4b3e-8e76-e6475c6514d2/main test / src_dir / standard_crystal.cr
c865d4db-f4b2-4b3e-8e76-e6475c6514d2/main

Tree @c865d4db-f4b2-4b3e-8e76-e6475c6514d2/main (Download .tar.gz)

standard_crystal.cr @c865d4db-f4b2-4b3e-8e76-e6475c6514d2/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