La anterior entrada no terminó de contar todo lo que hay que contar sobre las listas.
Comenté que se pueden concatenar listas con el operador ++. También podemos quitar elementos de una lista con el operador --:
1> Verano=[junio,julio,agosto].
[junio,julio,agosto]
2> Otono=[septiembre,octubre,noviembre].
[septiembre,octubre,noviembre]
3> Invierno=[diciembre,enero,febrero].
[diciembre,enero,febrero]
4> Primavera=[marzo,abril,mayo].
[marzo,abril,mayo]
5> Ano=Primavera++Verano++Otono++Invierno.
[marzo,abril,mayo,junio,julio,agosto,septiembre,octubre,
noviembre,diciembre,enero,febrero]
6> Frio=Ano--Verano.
[marzo,abril,mayo,septiembre,octubre,noviembre,diciembre,
enero,febrero]
7> Ano--[noviembre,mayo].
[marzo,abril,junio,julio,agosto,septiembre,octubre,
diciembre,enero,febrero]
Read the rest of this entry »
Comentarios recientes