cap.ha (199B)
1 // License: MPL-2.0 2 // (c) 2022 Sebastian <sebastian@sebsite.pw> 3 use types; 4 5 // Returns the capacity of a string. 6 export fn cap(s: str) size = { 7 const s = &s: *types::string; 8 return s.capacity; 9 };
hare[hare] The Hare programming language | |
git clone https://git.torresjrjr.com/hare.git | |
Log | Files | Refs | README | LICENSE |