generated from openpeeps/pistachio
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Tim should borrow some callable utilities from Nim's standard library
Tim's standard library in modules:
std/system, std/strings, std/arrays, std/objects, std/math and std/os (read-only functions)
var x = "Hello"
echo len($x) // 5
echo $x.len // 5 (UCS style)
echo $x.encode.len // 8
// equivalent of
echo len(encode($x)) // 8
@import "std/strings"
echo $x.contains("o")