LoginSignup
0
0

More than 3 years have passed since last update.

記憶代用 ¥circ

Last updated at Posted at 2019-11-23

実行環境 julia1.2, MacOS10.15

juliaのmanualの
15.15 Func􀦧on compositon and piping
で、関数のcompositionについてこう書かれている。

(f g)(args...) is the same as f(g(args...)).

このfとgの間になにも見えない。すこし空白の幅が大きいか。
例として書かれているコードをタイプしてみると

julia> (sqrt +)(3, 6)
3.0

とはならず、エラーになる。

先の引用の次の行にこうあるのに気づいたのは何日かしたあとだった。

... using \circ<tab>.

そうすると

julia> (sqrt  +)(3,6)
3.0

この○がpdfでは見えなかった。

15.15のタイトルや、本文の'composition'をpdfからコピペすると、't'が豆腐になるのはなにか不思議なコードがはいっているのだろう。

ちなみにやりたかったのは、関数fとgの積の関数 (f x g)を作りたかったので、これははずれ。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0