annotate sequences/@seq/split.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
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