コンテンツにスキップ

検索結果

(前の20件 | ) (20 | 50 | 100 | 250 | 500 件) を表示
  • T2) T2 { result := init for _, v := range s { result = f(result, v) } return result } func Filter[T any](s []T, f func(T) bool) []T { result := make([]T…
    17キロバイト (2,429 語) - 2023年2月28日 (火) 05:55
  • TypeError(); let result = initial for (const x of this) { if (result === undefined) result = x else result = callback(result, x, this) } return result }, union:…
    6キロバイト (717 語) - 2021年12月28日 (火) 02:33
  • 例えば: try: result = 10 / 2 # 例外が発生しないようなコード except ZeroDivisionError as e: print("ゼロ除算エラー:", e) else: print("計算結果:", result) finally: print("処理が完了しました")…
    15キロバイト (1,541 語) - 2024年3月2日 (土) 10:42
  • As Integer = 10 Dim y As Integer = 3 Dim result As Integer result = x + y ' 足し算 result = x - y ' 引き算 result = x * y ' 掛け算 result = x / y ' 割り算 result
    9キロバイト (702 語) - 2023年10月10日 (火) 04:50
  • _anon["b"]) print(f"{f.__annotations__=}") result = a + b assert isinstance(result,_anon["return"]) return result class Point(dict): x: int y: int x = 10…
    10キロバイト (1,446 語) - 2024年1月8日 (月) 04:40
  • capture iteration. We'll start by defining a few obvious helper functions. not and null are defined exactly as you'd expect it, using if statements: (define…
    14キロバイト (2,312 語) - 2011年11月16日 (水) 05:24
  • += 1n; [a, b, a1, b1] = [a1, b1, p * a + q * a1, p * b + q * b1]; d = a / b; d1 = a1 / b1; while (d == d1) { result += Number(d).toString(); [a, a1] =…
    4キロバイト (620 語) - 2022年9月8日 (木) 01:53
  • # 処理 # ... return result 例えば、Pythonでの関数定義はこのようになります。 def add_numbers(a, b): sum = a + b return sum この例では、add_numbersという関数が定義されており、a
    17キロバイト (2,335 語) - 2024年3月2日 (土) 10:26
  • ($value) { case 1: $result = 'A'; break; case 2: $result = 'B'; break; case 3: case 4: case 5: $result = 'C'; break; default: $result = 'D'; break; } //…
    39キロバイト (5,388 語) - 2024年1月28日 (日) 09:27
  • WSACleanup(); return 1; } // Create a SOCKET for connecting to server ListenSocket = socket(result->ai_family, result->ai_socktype, result->ai_protocol); if (ListenSocket…
    10キロバイト (1,165 語) - 2022年11月28日 (月) 17:35
  • notFollowedBy ensure that only a single character is read. Note that this does not actually conform to the standard; as it stands, "space" and "newline"…
    15キロバイト (1,397 語) - 2021年4月13日 (火) 11:11
  • int add(int a, int b) { return a + b; } 関数を呼び出すには、関数名と引数を使います: int result = add(3, 4); printf("結果: %d\n", result); main関数はプログラムのエントリーポイント…
    14キロバイト (1,886 語) - 2024年6月13日 (木) 00:08
  • int andResult = a & b; // AND演算子: 0001 (1) int orResult = a | b; // OR演算子: 0111 (7) int xorResult = a ^ b; // XOR演算子: 0110 (6) int notResult = ~a; // NOT演算子:…
    14キロバイト (1,890 語) - 2024年1月10日 (水) 07:23
  • 2 == 0) { continue; } if (result > 20) { break; } } 実行結果 result = 3 result = 6 result = 11 result = 18 result = 28 result = 39 for..…
    4キロバイト (499 語) - 2021年7月13日 (火) 04:27
  • current { result.push(&node.data); current = node.next.as_ref().map(|next| &**next); } result } } pub struct ListIterator<'a, T> { current: Option<&'a ListNode<T>>…
    69キロバイト (9,202 語) - 2024年3月12日 (火) 01:21
  • mixed $result = null): mixed { $i = 0; foreach ($ary as $el) { if ($i == 0 && !isset($result)) { $result = $el; } else { $result = $code($result, $el,…
    40キロバイト (5,575 語) - 2023年4月24日 (月) 07:59
  • i < 0 { return "-" + strd(-i) } result := "" up := i / 10 if up > 0 { result += strd(up) } d := i % 10 return result + string("0123456789"[d]) } func…
    2キロバイト (261 語) - 2021年10月5日 (火) 02:32
  • = true } result := []int{} for i := 2; i <= n; i++ { if sieve[i] { for j := i * 2; j <= n; j += i { sieve[j] = false } result = append(result, i) } } return…
    7キロバイト (1,165 語) - 2024年2月7日 (水) 07:35
  • ary[i]); int result = memcmp(s1, s2, i); if (result == 0) { puts("s1とs2は等しい。"); } else if (result > 0) { puts("s1はs2より大きい。"); } else if (result < 0) { puts("s1はs2より小さい。");…
    32キロバイト (4,628 語) - 2021年12月2日 (木) 23:41
  • result.push([q,...e]))) return result; } }); } const perm = "ABC".split("").permutation(3); console.log(JSON.stringify(perm)); // [["A","B","C"],["A"…
    31キロバイト (3,684 語) - 2023年4月18日 (火) 21:52
(前の20件 | ) (20 | 50 | 100 | 250 | 500 件) を表示