Closed mykeels closed 5 years ago
Adds ability to work with objects into the language.
ebi is family, which represents an object, and it can be used like:
ebi
jẹ́kí person = ebi( "name", "bisi" );
to create an object like { name: 'bisi' }, and can be nested like
{ name: 'bisi' }
jẹ́kí person = ebi( "name", "bisi", ebi( "age", 31 ) );
to create { name: 'bisi', age: 31 }.
{ name: 'bisi', age: 31 }
ọmọ is child, which is used to get or set the property of an object. E.g.
ọmọ
ọmọ(person, "name");
using the object created above will return bisi.
bisi
and
ọmọ(person, "name", "kola");
will set the "name" property of the object to "kola" and return that instead.
Adds ability to work with objects into the language.
Ebi (objects)
ebi
is family, which represents an object, and it can be used like:to create an object like
{ name: 'bisi' }
, and can be nested liketo create
{ name: 'bisi', age: 31 }
.Omo (gets or sets an object's property)
ọmọ
is child, which is used to get or set the property of an object. E.g.using the object created above will return
bisi
.and
will set the "name" property of the object to "kola" and return that instead.