- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for Ord (0.02 sec)
-
test/typeparam/issue50485.dir/a.go
} func OrdOption[T any](m Ord[T]) Ord[Option[T]] { return LessFunc[Option[T]](func(t1 Option[T], t2 Option[T]) bool { if !t1.IsDefined() && !t2.IsDefined() { return false } return Applicative2(m.Less).ApOption(t1).ApOption(t2).OrElse(!t1.IsDefined()) }) } func Given[T ImplicitOrd]() Ord[T] { return LessGiven[T]()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 4.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/decode.go
// Decode decodes the leading bytes in src as a single instruction using // byte order ord. func Decode(src []byte, ord binary.ByteOrder) (inst Inst, err error) { if len(src) < 4 { return inst, errShort } if decoderCover == nil { decoderCover = make([]bool, len(instFormats)) } inst.Len = 4 ui_extn := [2]uint32{ord.Uint32(src[:inst.Len]), 0} ui := uint64(ui_extn[0]) << 32 inst.Enc = ui_extn[0]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 22 17:16:14 UTC 2022 - 5.6K bytes - Viewed (0) -
src/syscall/dirent_test.go
if len(names) != 10 { t.Errorf("got %d names; expected 10", len(names)) } for i, name := range names { ord, err := strconv.Atoi(name[:1]) if err != nil { t.Fatalf("names[%d] is non-integer %q: %v", i, names[i], err) } if expected := strings.Repeat(name[:1], filenameMinSize+ord); name != expected { t.Errorf("names[%d] is %q (len %d); expected %q (len %d)", i, name, len(name), expected, len(expected)) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3.4K bytes - Viewed (0) -
docs/em/docs/tutorial/path-params-numeric-validations.md
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Apr 01 09:26:04 UTC 2023 - 4.4K bytes - Viewed (0) -
docs/pt/docs/tutorial/path-params-numeric-validations.md
O Python não vai fazer nada com esse `*`, mas ele vai saber que a partir dali os parâmetros seguintes deverão ser chamados argumentos nomeados (pares chave-valor), também conhecidos como <abbr title="Do inglês: K-ey W-ord Arg-uments"><code>kwargs</code></abbr>. Mesmo que eles não possuam um valor padrão. ```Python hl_lines="7" {!../../../docs_src/path_params_numeric_validations/tutorial003.py!} ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Oct 17 05:59:11 UTC 2023 - 5.6K bytes - Viewed (0) -
docs/en/docs/tutorial/path-params-numeric-validations.md
Pass `*`, as the first parameter of the function. Python won't do anything with that `*`, but it will know that all the following parameters should be called as keyword arguments (key-value pairs), also known as <abbr title="From: K-ey W-ord Arg-uments"><code>kwargs</code></abbr>. Even if they don't have a default value. ```Python hl_lines="7" {!../../../docs_src/path_params_numeric_validations/tutorial003.py!} ``` ### Better with `Annotated`
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Jun 01 21:05:52 UTC 2024 - 9K bytes - Viewed (0) -
docs/zh/docs/tutorial/path-params-numeric-validations.md
## 按需对参数排序的技巧 如果你想不使用 `Query` 声明没有默认值的查询参数 `q`,同时使用 `Path` 声明路径参数 `item_id`,并使它们的顺序与上面不同,Python 对此有一些特殊的语法。 传递 `*` 作为函数的第一个参数。 Python 不会对该 `*` 做任何事情,但是它将知道之后的所有参数都应作为关键字参数(键值对),也被称为 <abbr title="来自:K-ey W-ord Arg-uments"><code>kwargs</code></abbr>,来调用。即使它们没有默认值。 ```Python hl_lines="7" {!../../../docs_src/path_params_numeric_validations/tutorial003.py!} ``` ## 数值校验:大于等于
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Oct 17 05:59:11 UTC 2023 - 6.3K bytes - Viewed (0) -
docs/ja/docs/tutorial/path-params-numeric-validations.md
クエリパラメータ`q`を`Query`やデフォルト値なしで宣言し、パスパラメータ`item_id`を`Path`を用いて宣言し、それらを別の順番に並びたい場合、Pythonには少し特殊な構文が用意されています。 関数の最初のパラメータとして`*`を渡します。 Pythonはその`*`で何かをすることはありませんが、それ以降のすべてのパラメータがキーワード引数(キーと値のペア)として呼ばれるべきものであると知っているでしょう。それは<abbr title="From: K-ey W-ord Arg-uments"><code>kwargs</code></abbr>としても知られています。たとえデフォルト値がなくても。 ```Python hl_lines="8" {!../../../docs_src/path_params_numeric_validations/tutorial003.py!} ``` ## 数値の検証: 以上
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon Jan 15 15:46:32 UTC 2024 - 6.1K bytes - Viewed (0)