[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Define markup with iteration
From: |
Gilles THIBAULT |
Subject: |
Re: Define markup with iteration |
Date: |
Tue, 14 Apr 2015 14:41:31 +0200 |
User-agent: |
KMail/4.12.5 (Linux/3.14.32-desktop-1.mga4; KDE/4.12.5; x86_64; ; ) |
Le mardi 14 avril 2015, 14:22:58 Pierre Perol-Schneider a écrit :
> (#:path 0.15
> `(
> (moveto 0 ,(* pad n))(lineto ,long ,(* pad
> n)) ; n
> ;;iteration:
> ;(moveto 0 ,(* pad 0))(lineto ,long ,(* pad
> 0)) ; 0 ;(moveto 0 ,(* pad 1))(lineto ,long ,(* pad 1)) ; 1
> ;(moveto 0 ,(* pad 2))(lineto ,long ,(* pad 2)) ; 2 ;...
> ;(moveto 0 ,(* pad n))(lineto ,long ,(* pad
> n)) ; n )))
;;untested
(#:path 0.15
(map
(lambda(i)
(moveto 0 (* pad i))(lineto long (* pad i))
(iota n)
Perhaps (iota (1+ n))
--
Gilles
- Define markup with iteration, Pierre Perol-Schneider, 2015/04/14
- Re: Define markup with iteration,
Gilles THIBAULT <=
- Re: Define markup with iteration, Gilles THIBAULT, 2015/04/14
- Re: Define markup with iteration, Pierre Perol-Schneider, 2015/04/14
- Re: Define markup with iteration, Paul Morris, 2015/04/14
- Re: Define markup with iteration, Pierre Perol-Schneider, 2015/04/14
- Re: Define markup with iteration, tisimst, 2015/04/14
- Re: Define markup with iteration, Pierre Perol-Schneider, 2015/04/14