June 2018 Update

This commit is contained in:
Ingy döt Net 2018-06-22 20:57:24 +00:00
parent ba8067c3b7
commit 22f33d4004
5278 changed files with 84726 additions and 14379 deletions

View file

@ -1,17 +1,17 @@
-- in some movie script
----------------------------------------
-- Runs provided function on all elements of the provided list, returns results as new list
-- @param {list} tList
-- Runs provided function (of some object) on all elements of the provided list, returns results as new list
-- @param {list} aList
-- @param {symbol} cbFunc
-- @param {object} [cbObj=_movie]
-- @return {list}
----------------------------------------
on map (tList, cbFunc, cbObj)
on map (aList, cbFunc, cbObj)
if voidP(cbObj) then cbObj = _movie
res = []
cnt = tList.count
cnt = aList.count
repeat with i = 1 to cnt
res[i] = call(cbFunc, cbObj, tList[i])
res[i] = call(cbFunc, cbObj, aList[i])
end repeat
return res
end