Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Some of the generic functions operating on lists are restricted to lists of strings. For instance:
_[_] : (string,[(string*string)])->string
list.assoc : (string,[(string*string)])->string
list.hd : ([string])->string
etc.
For the two first, this might just be that association lists should be generalized to be able to contain any elements indexed by strings. But list.hd is clearly a bug.
Notice that this is not the case for all functions operating on lists for instance:
list.length : (['a])->int
list.tl : (['a])->['a]
_[_] : (string,[(string*string)])->string
list.assoc : (string,[(string*string)])->string
list.hd : ([string])->string
etc.
For the two first, this might just be that association lists should be generalized to be able to contain any elements indexed by strings. But list.hd is clearly a bug.
Notice that this is not the case for all functions operating on lists for instance:
list.length : (['a])->int
list.tl : (['a])->['a]