User Tools

Site Tools


harlowe:dataset

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

harlowe:dataset [2017/06/19 02:36]
l created
harlowe:dataset [2017/06/19 02:36]
l
Line 6: Line 6:
 Think of datasets as being like arrays, but with specific restrictions:​ Think of datasets as being like arrays, but with specific restrictions:​
  
-  * You can't access any positions within the dataset (so, for instance, the ''​%%1st%%'',​ ''​%%2ndlast%%''​ +  * You can't access any positions within the dataset (so, for instance, the ''​%%1st%%'',​ ''​%%2ndlast%%''​ and ''​%%last%%''​ aren't available, although the ''​%%length%%''​ still is) and can only use ''​%%contains%%''​ and ''​%%is in%%''​ to see whether a value is inside (or, by using ''​%%any%%''​ and ''​%%all%%'',​ many values). 
-and ''​%%last%%''​ aren't available, although the ''​%%length%%''​ still is) and can only use ''​%%contains%%''​ +  * Datasets only contain unique values: adding the [[harlowe:​string|string]] "​Go"​ to a dataset already containing "​Go"​ will do nothing. 
-and ''​%%is in%%''​ to see whether a value is inside (or, by using ''​%%any%%''​ and ''​%%all%%'',​ many values). +  * Datasets are considered equal (by the ''​%%is%%''​ operator) if they have the same items, regardless of order (as they have no order).
-  * Datasets only contain unique values: adding the [[harlowe:​string|string]] "​Go"​ to a dataset already +
-containing "​Go"​ will do nothing. +
-  * Datasets are considered equal (by the ''​%%is%%''​ operator) if they have the same items, regardless +
-of order (as they have no order).+
  
 These restrictions can be helpful in that they can stop programming mistakes from These restrictions can be helpful in that they can stop programming mistakes from
harlowe/dataset.txt · Last modified: 2017/10/09 20:39 (external edit)