Juliaでもglobは使える![Julia]
![Thumbnail of post image 008](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/izabelle-acheson-aolXWwy-DiY-unsplash.jpg?resize=150%2C150&ssl=1)
Pythonでお世話になっているglob.*を使ってパターンマッチングしてくれるから,フォルダ内のファイルを読み込む際にとっても便利だ.
そんなglobだが,実はJuliaでも同様のライブラリが存在する!
これ ...
JuliaでStringをIntにキャスト[Julia]
![Thumbnail of post image 184](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/brooke-lark-HlNcigvUi4Q-unsplash.jpg?resize=150%2C150&ssl=1)
parse(Int64, "64")>> 64
Juliaでリスト内にある特定の要素があるかどうかを判定する[Julia]
![Thumbnail of post image 175](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/lex-sirikiat-nV19ucDBbs8-unsplash.jpg?resize=150%2C150&ssl=1)
l=in("a", l)>> true
inという関数を使うだけ.
ちなみにpythonでは,
と書く.
Juliaで文字列の先頭と最後尾を取得する方法[Julia]
![Thumbnail of post image 125](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/taylor-heery-71sp4JBYO-U-unsplash-2.jpg?resize=150%2C150&ssl=1)
julia> str = "Hello, world.\n""Hello, world.\n"julia> str # 先頭はカッコ内に1を入れる'H': ASCII/Unicode U+0048 (category Lu: L ...
branchを指定してJuliaパッケージをインストール[Julia]
![Thumbnail of post image 069](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/anna-sullivan-IUXR0sqs-mY-unsplash.jpg?resize=150%2C150&ssl=1)
#の後ろにブランチ名を付けるだけ
addDockerでJuliaのv1.0環境を構築[Docker][Julia]
![Thumbnail of post image 119](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/izabelle-acheson-aolXWwy-DiY-unsplash.jpg?resize=150%2C150&ssl=1)
同僚から急遽動かすように言われたJuliaの対応バージョンが1.0であった.しかし,11月時点でJuliaはv1.1にアップデートされている.v1.0はgithubからcheckoutすれば手に入るのだが,素直にmakeしただけでは動 ...
Juliaのパッケージ追加方法
![Thumbnail of post image 129](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/danielle-macinnes-IuLgi9PWETU-unsplash.jpg?resize=150%2C150&ssl=1)
1つ目の方法
Pkg.add("Winston")2つ目の方法
Juliaコンソール上で” ] “キーを押すと
(v1.1) pkg>上のような表示がでる
...
Ubuntu16.04にjuliaをIDE付きでインストールするまで
![Thumbnail of post image 046](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/anna-sullivan-IUXR0sqs-mY-unsplash.jpg?resize=150%2C150&ssl=1)
同僚から譲り受けたプログラムがJulia言語で書かれていた為, 急遽Julia環境を作成することになってしまった. そして, 折角Juliaに出会えたのだからこの際勉強しようと思い, IDE付きでインストールすることにした. 本記事で ...