count

Messages in english

Modérateur : xcasadmin

compsystems
Messages : 561
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

count

Message par compsystems » sam. mai 18, 2019 10:28 pm

t2:=("a","a","a","e","e","i","i","i","u") [enter]
t2.count(t2,"a") [enter] returns 1? > 3

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: count

Message par parisse » dim. mai 19, 2019 2:50 pm

t2 is a sequence, therefore evaluation of t2,"a" will add "a" to the sequence.

compsystems
Messages : 561
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

Re: count

Message par compsystems » mar. nov. 05, 2019 1:49 am

This feature has not yet been updated.

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: count

Message par parisse » mar. nov. 05, 2019 5:16 pm

It will never be, because of the nature of the objects. Sequences in Xcas are != from tuples in Python.

Répondre