wscript prelude
Generated Markdown for references/fact_wscript_prelude.md.
Open book page Back to the skill graph
# wscript prelude
Always available, no import:
| `print` / `println` | `(any)` / `(any?)` | redirected into `log::info` |
| `str` | `(any) -> string` | uses `Display` impls |
| `fmt` | `(string, any…) -> string` | `{}` placeholders; `{{`/`}}` escape; count compile-checked |
| `same` | `(T, T) -> bool` | reference identity |
| `weak` | `(T) -> weak[T]` | reference types only |
| `int` | `(int\|float\|char) -> int` | float truncates; char gives code point |
| `float` | `(int\|float) -> float` | |
## Related
- [wscript: overview](../references/concept_wscript_overview.md)
- [wscript: values and types](../references/concept_wscript_values_types.md)
[← Back to SKILL.md](../SKILL.md)