Scol standard library package
0.3.1
Common and usefull functions for all Scol applications
|
Scol Standard Library - List API. More...
Functions | |
std_ensemble (lA, lB, flag) | |
std_lApplyFunc (list, f, x) | |
apply a function to a list More... | |
std_lCat (p, q) | |
Concat two list to one. More... | |
std_lDifference (lA, lB) | |
Difference between two lists. More... | |
std_lDifferenceSym (lA, lB) | |
Symetric difference between two lists (xor) More... | |
std_lDisjoint (lA, lB) | |
Returns if a list is disjoint in another one (they have no element in common). More... | |
std_lDivide (x, p, r1, r2, f) | |
Divide list. More... | |
std_lDivideList (item, items, sub1, sub2, func) | |
Divide a list in two sub lists. More... | |
std_lDivideString (x, p, r1, r2, f) | |
Divide string list. More... | |
std_lEltBigger (a, b) | |
Conivience function to compare two elements. More... | |
std_lEltCmp (a, b) | |
Conivience function to compare two elements (string excepted) More... | |
std_lEltNCmp (a, b) | |
Conivience function to compare two elements (string excepted) More... | |
std_leltpos (list, e, n, flag) | |
std_lEltPos (list, e) | |
Return the position of an element. More... | |
std_leltposfunc (list, f, e, n) | |
std_lEltPosFunc (list, f, e) | |
Return the position of an element. More... | |
std_lEltPosStr (list, e) | |
Return the position of a string element case sensitive. More... | |
std_lEltPosStri (list, e) | |
Return the position of a string element case insensitive. More... | |
std_lEltSmaller (a, b) | |
Conivience function to compare two elements. More... | |
std_lequals (lA, lB, f) | |
std_lEquals (lA, lB, f) | |
Return if two lists are equals (same size, same items, same order) More... | |
std_lExtractList (list, e, func) | |
Extract a list in two sub list. More... | |
std_linclude (lA, lB, flag) | |
std_lInclude (lA, lB) | |
Returns if a list is included in another one. More... | |
std_lIntersection (lA, lB) | |
Intersection between two lists (and) More... | |
std_lIsInList (list, e) | |
Check if a value is in a given list. More... | |
std_lIsInListFunc (list, f, e) | |
Check if a value is in a given list. More... | |
std_lQuickSort (list, func) | |
Sort a list using an external function. More... | |
std_lQuicksort (l, f) | |
std_lQuicksortString (l, f) | |
Sort a string list. More... | |
std_lRemoveElt (list, e) | |
Remove an element in a list. More... | |
std_lRemoveFunc (list, func, e) | |
Remove an element in a list by a function. More... | |
std_lRemoveStr (list, e) | |
Remove an string in a list. Case-sensitive. More... | |
std_lRemoveStri (list, e) | |
Remove an string in a list. Case-insensitive. More... | |
std_lReplaceElement (lSrc, oldElt, newElt) | |
Replace an element by other one. More... | |
std_lReplaceElementStr (lSrc, oldS, newS) | |
Replace an string by other one Case sensitive. More... | |
std_lReplaceElementStri (lSrc, oldS, newS) | |
Replace an string by other one Case insensitive. More... | |
std_lReverse (list) | |
Reverse a list (perform a mirror) More... | |
std_lSearch (l, f, x) | |
std_lSearchAll (l, f, x) | |
std_lSetUnique (lSrc) | |
Remove all supplemental elements. The list will have unique elements only. More... | |
std_lSetUniqueEx (lSrc, func) | |
Remove all supplemental elements. The list will have unique elements only. More... | |
std_lSortList (l, f) | |
Sort a list. More... | |
std_lSplit (l, pos) | |
Split a list in two list at given position. More... | |
std_lStriIsInList (list, e) | |
Check if a string is in a given string list case insensitive. More... | |
std_lStrIsInList (list, e) | |
Check if a string is in a given string list case sensitive. More... | |
std_lsub (list, start, end, cpt) | |
std_lSub (list, start, end) | |
Extract a list between to indices. More... | |
std_lunion (lA, out) | |
std_lUnion (lA, lB) | |
Union between two lists (or) More... | |
Variables | |
proto | std_lDisjoint =fun [[u0 r1] [u0 r1]] I |
proto | std_lEquals =fun [[u0 r1] [u0 r1] fun [u0 u0] I] I |
Scol Standard Library - List API.
This API provides an high level method to easily include list manipulations
std_lSearch | ( | l | , |
f | , | ||
x | |||
) |
std_lSearchAll | ( | l | , |
f | , | ||
x | |||
) |