OxL Справочник OxL
РусскийEnglish

op |>

|>

Определяется в

Примеры

oxl
operator <|> <T>(a: Parser<T>, b: Parser<T>) -> Parser<T>  infixl 3 => a.orElse(b)
operator ~~ (s: str, re: Regex) -> bool                      infix 4 => re.matches(s)
operator ^^ (a: f64, b: f64) -> f64                          infixr 12 => a.pow(b)
operator ¬ (b: Bits) -> Bits                                prefix => b.invert()

— 5.3 Перегрузка и пользовательские операторы

oxl
use std.time { Duration, now }
use std.http.{Client as Http}
use self.billing { charge }      // модуль своего пакета
use super.common { Money }       // родительский модуль
use auth.tokens { verify }       // зависимость из oxl.toml
use parsers { <|> }              // импорт оператора
use std.coll.*                   // все pub-имена (предупреждение в библиотеках)

— 2.2 Импорт

Связанные диагностики

chained-comparison, not-callable, not-overloadable, operator-decl, range-not-iterable, invalid-char, bad-import-root, glob-import, import-conflict, unresolved-import, unresolved-name

См. также