Fetch elements from List in scheme

Posted by fireball003 on Stack Overflow See other posts from Stack Overflow or by fireball003
Published on 2009-06-12T08:32:44Z Indexed on 2010/06/08 21:12 UTC
Read the original article Hit count: 269

Filed under:
|
|

Hi, How to go through a list or fetch element from a list in scheme?

How can I name each element (like we do for variables in java) in a list?

Thanks in advance.

I want to compare every point in a list to another point. So, as we do in java or python-

for(int i;i<list.size();i++){
    if (list[i]> k){ 
        //do something
    }

}

How can I do similar thing in scheme?

© Stack Overflow or respective owner

Related posts about Scheme

Related posts about plt-scheme