As an aside.. I just looked at the source for this, what does the :static
tag in the metadata do?
From what I can make out... nothing. I think it is left over from an
experiment to improve var lookup times prior to dynamic binding being
disabled by default.
--
You received this message
On Apr 10, 12:36 am, David Powell d...@djpowell.net wrote:
As an aside.. I just looked at the source for this, what does the :static
tag in the metadata do?
From what I can make out... nothing. I think it is left over from an
experiment to improve var lookup times prior to dynamic binding
Given a lazy sequence of numbers is there a way to interleave a constant
and get another lazy sequence? Say the first sequence is 1 2 3 4 ... I'd
like the second sequence to be 1 0 2 0 3 0 4 0
Thanks in advance!
--
You received this message because you are subscribed to the Google
Groups
D o you want this?
user= (def x (interleave (iterate inc 1) (repeat 0)))
#'user/x
user= (take 10 x)
(1 0 2 0 3 0 4 0 5 0)
2012/4/10 Andrew ache...@gmail.com
Given a lazy sequence of numbers is there a way to interleave a constant
and get another lazy sequence? Say the first sequence is 1 2 3 4
On 4/9/12 8:31 PM, Andrew wrote:
Given a lazy sequence of numbers is there a way to interleave a
constant and get another lazy sequence? Say the first sequence is 1 2
3 4 ... I'd like the second sequence to be 1 0 2 0 3 0 4 0
Thanks in advance!
Yep, and it is even called interleave.
On Mon, Apr 9, 2012 at 10:31 PM, Andrew ache...@gmail.com wrote:
Given a lazy sequence of numbers is there a way to interleave a constant and
get another lazy sequence? Say the first sequence is 1 2 3 4 ... I'd like
the second sequence to be 1 0 2 0 3 0 4 0
Thanks in advance!
user=
On 4/9/12 9:10 PM, Cedric Greevey wrote:
On Mon, Apr 9, 2012 at 10:31 PM, Andrewache...@gmail.com wrote:
Given a lazy sequence of numbers is there a way to interleave a constant and
get another lazy sequence? Say the first sequence is 1 2 3 4 ... I'd like
the second sequence to be 1 0 2 0 3 0