summaryrefslogtreecommitdiff
path: root/libstd/slput.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-08-26 12:20:58 -0700
committerOri Bernstein <ori@eigenstate.org>2015-08-26 12:20:58 -0700
commit2bc852bda98762d3bc01548bf972e3f1b137fbfb (patch)
tree74831deed3c9057c5fe0cbb8790d220e855bc792 /libstd/slput.myr
parent3de952510eb2a23350d24ed926f19c0cf72a12f2 (diff)
downloadmc-2bc852bda98762d3bc01548bf972e3f1b137fbfb.tar.gz
Move Myrddin libs to lib/ subdirectory.
Diffstat (limited to 'libstd/slput.myr')
-rw-r--r--libstd/slput.myr20
1 files changed, 0 insertions, 20 deletions
diff --git a/libstd/slput.myr b/libstd/slput.myr
deleted file mode 100644
index 88dc875..0000000
--- a/libstd/slput.myr
+++ /dev/null
@@ -1,20 +0,0 @@
-use "types.use"
-use "alloc.use"
-use "die.use"
-
-pkg std =
- generic slput : (sl : @a[:], idx : size, elt : @a -> @a[:])
-;;
-
-generic slput = {sl, idx, elt
- var i
- var len
-
- len = sl.len
- sl = slgrow(sl, sl.len + 1)
- for i = len - 1; i >= idx; i--
- sl[i + 1] = sl[i]
- ;;
- sl[idx] = elt
- -> sl
-}