annotate sequences/@seq/split.m @ 16:db7f4afd27c5

Rearranging numerical toolbox.
author samer
date Thu, 17 Jan 2013 13:20:44 +0000
parents 3f77126f7b5f
children
rev   line source
samer@3 1 function [h,t]=split(n,s)
samer@3 2 % split - split sequence into initial and trailing segments
samer@3 3 %
samer@3 4 % split :: N:natural, seq(A) -> seq(A), seq(A)
samer@3 5
samer@3 6 h=take(n,s);
samer@3 7 t=drop(n,s);
samer@3 8
samer@3 9
samer@3 10