diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-21 21:11:13 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-21 21:11:13 -0700 |
| commit | 26d72ce56ed1e9066edfbb3fedd8f5570d0cb5f4 (patch) | |
| tree | 539761e2fc96f20579b106cec99bf0634dfe0708 /utils.lua | |
| parent | e478b33d7abba5933ddfcc60558585b58b898bff (diff) | |
Overhaul of invocations/specs. Much cleaner and more consistent now,
with less code duplication.
Diffstat (limited to 'utils.lua')
| -rw-r--r-- | utils.lua | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -78,6 +78,14 @@ utils = { end return _accum_0 end, + remove_from_list = function(list, item) + for i, list_item in ipairs(list) do + if list_item == item then + table.remove(list, i) + return + end + end + end, accumulate = function(glue, co) if co == nil then glue, co = "", glue |
