Jump to content

Category talk:Wren-trait: Difference between revisions

m
→‎Source code: Changed a program comment.
(→‎Source code: Added a method to ByKey class.)
m (→‎Source code: Changed a program comment.)
Line 184:
static [key] { __map ? __map[key] : null }
 
// Retrieves a ByKey object's key from the object it wraps. Returns 0 if the object is unwrapped.
// If the same object has been wrapped more than once, returns the first key found which may
// not be the lowest. Returns 0 if the object is unwrapped.
static findKey(obj) {
for (me in __map) {
9,483

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.