- 実行ツール
-
学ぶ
Pythonを学ぶ 実行可能な例、NumPy、pandasなど AIを学ぶニューラルネット・機械学習・LLM をゼロから C/C++を学ぶ ポインタ、メモリ、STL、モダンC++ C#を学ぶC# 基礎、OOP、LINQ、async、.NET 演習 Matplotlibを学ぶ折れ線・棒・散布図・円グラフをインタラクティブに Rust を学ぶ所有権、トレイト、エラー処理、スレッド Go を学ぶスライス、インターフェース、goroutine、チャネル Pythonアルゴリズム 探索、ソート、再帰、ビジュアライザー O(n) C/C++アルゴリズム CとC++の実装を比較 子ども向けプログラミング 遊びながらプログラミングを学ぼう!
- 課題一覧NEW
- 教師向けNEW
- アップデート
- コーヒーをおごる
構造体、列挙型、トレイト
構造体と列挙型でデータを表し、パターンマッチを使い、Option と Result を扱い、トレイトとジェネリクスで振る舞いを共有します。
- レッスン チャレンジ 1 件 Structs Group related values into your own type with named fields.
- レッスン チャレンジ 2 件 Methods and impl Blocks Attach functions to a struct with impl, including constructors.
- レッスン チャレンジ 1 件 Enums Define a type that is one of several variants, each with its own data.
- レッスン チャレンジ 2 件 Pattern Matching with match Compare a value against patterns with match, guards and if let.
- レッスン チャレンジ 1 件 Temperature Converter Convert between Celsius and Fahrenheit with an enum.
- レッスン チャレンジ 2 件 Option: Values That May Be Missing Represent a missing value with Option instead of null.
- レッスン チャレンジ 2 件 Error Handling with Result Return errors as values with Result and pass them on with the ? operator.
- レッスン チャレンジ 1 件 Bank Account with Result Model deposits and withdrawals that can fail with your own error type.
- レッスン チャレンジ 1 件 Traits Describe shared behavior with a trait and implement it for different types.
- レッスン チャレンジ 1 件 Generics Write one function or struct that works with many types.