Added documentation for ++oust.
commit034ce3245d8115a35a7e0ae9067d09a11feaae37
authorFang <fang@fang.io>
dateSat 27 Aug 2016, 11:39 (10 years ago)
parentec2dd03
docs/hoon/library/2b.md+35
@@ -393,6 +393,41 @@ Examples
393393
394394
395395
396+***
397+### `++oust`
398+
399+Remove
400+
401+Removes elements from list `c` beginning at inclusive index `a`, removing `b` number of elements.
402+
403+Accepts
404+-------
405+
406+`c` is a list.
407+
408+Produces
409+--------
410+
411+A `++list`.
412+
413+Source
414+------
415+
416+ ++ oust :: remove
417+ ~/ %oust
418+ |* {{a/@ b/@} c/(list)}
419+ (weld (scag a c) (slag (add a b) c))
420+
421+Examples
422+--------
423+
424+ > (oust [4 5] "good day, urbit!")
425+ "good urbit!"
426+ > (oust [2 2] (limo [1 2 3 4 ~]))
427+ [i=1 t=[i=2 t=~]]
428+
429+
430+
396431***
397432### `++reap`
398433