Hi,
I think you can do what you want with filter but it returns whole collection
filter(x>mod(x,7)!=0,0:100)
On Monday, March 14, 2016 at 8:49:06 PM UTC+2, Jesse Jaanila wrote:
>
> Hi
>
> How could I build range (UnitRange) that doesn't include elements given
> some condition? Like
> if i'd like
filter(x->mod(x,7)!=0,0:100)
On Monday, March 14, 2016 at 8:57:20 PM UTC+2, Lutfullah Tomak wrote:
>
> Hi,
> I think you can do what you want with filter but it returns whole
> collection
> filter(x>mod(x,7)!=0,0:100)
>
> On Monday, March 14, 2016 at 8:49:06 PM UTC+2, Jesse Jaanila wrote:
>>
>> H
If you want to reap the benefits of the UnitRange,
such as a constant sized representation regardless of collection size,
then you can define your own type that satisfies the iterator interface.
This is the most flexible option and an explanation can be found in
http://docs.julialang.org/en/releas