1.7 練習問題
- double (double 2)の結果を算出する別の計算方法を考える
double (double 2)
= double (2 + 2)
= (2 + 2) + (2 + 2)
= 4 + (2 + 2)
= 4 + 4
CSV::Writer#<<メソッドに関する質問です | |
3.0.1以前と3.0.2以降で CSV::Writer#<<メソッド内部の挙動に違いがあるように見えるのですが、これは意図的なものでしょうか? | |
### 相違点 | |
#### 3.0.1 | |
1行ずつencodeしてからStringIO#<<で文字列をappendしている。 | |
#### 3.0.2 | |
encodeせずにappendして、レシーバの文字コードに変換している。 |
# apache-arrow: enable Gandiva | |
Thanks for a great tool! | |
This PR turns -DARROW_GANDIVA flag on. | |
We tried to enable gandiva with this PR(https://github.com/Homebrew/homebrew-core/pull/58581), but it failed, so let's fix it and enable it. | |
The problem is the part that declares llvm as a build dependency. | |
When we compile with llvm, we are linking against the libc++ that comes with llvm. | |
So thereby llvm is a runtime dependency, actually. |
1.7 練習問題
double (double 2)
= double (2 + 2)
= (2 + 2) + (2 + 2)
= 4 + (2 + 2)
= 4 + 4
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>カレーのレシピ</title> | |
</head> | |
<body> | |
<article> | |
<h1>カレーのレシピ</h1> |
#rubyでは... | |
h = { :last_name => "佐藤", "first_name" => "太郎" } | |
#キーに指定した要素の型で値を取ってくることができる | |
h[:last_name] #=> "佐藤" | |
h["first_name"] #=> "太郎" | |
#指定した要素とは違う型で値を取ってくることはできない | |
h["last_name"] #=> nil |
module ActiveSupport | |
module Concern | |
class MultipleIncludedBlocks < StandardError #:nodoc: | |
def initialize | |
super "Cannot define multiple 'included' blocks for a Concern" | |
end | |
end | |
def self.extended(base) #:nodoc: |