Login  Register

Re: Simple Spec Examples

Posted by Camillo Bruni-3 on Oct 12, 2013; 1:47pm
URL: https://forum.world.st/Spec-Lists-setting-the-selection-tp4713776p4714075.html


On 2013-10-12, at 15:37, Benjamin <[hidden email]> wrote:

> Actually, you can do (1->2 -> 3) if you have multiple levels :)
>
> But clearly I will introduce a real data structure here.
> I just wanted to quickly hack it and have something where
> I can do  #head and #tail easily, and keep a simple way to write it :)

sounds familiar ;)

http://en.wikipedia.org/wiki/Cons
http://en.wikipedia.org/wiki/Car_and_cdr

signature.asc (457 bytes) Download Attachment