Post Reply 
Programming puzzles: processing lists!
05-27-2017, 08:07 PM
Post: #99
RE: Programming puzzles: processing lists!
(05-27-2017 07:40 PM)John Keith Wrote:  Example 2:

{1 2 3 4 5 6 7 8}
\<< {4} {9} LREPL \>> EVAL

Output: {1 2 3 4 5 6 7 8}
(That is, no replacement)

HTH,
John

John, I appreciate your trying this out. This is truly puzzling.

I just tried the exact same steps you outlined above (in exact mode as well), and got the expected result of { 1 2 3 9 5 6 7 8 }. I also tried putting all three lists into a program, and still had the correct results after execution. There's obviously still something very different about our setups that isn't apparent. I'd love to know what it is.

What happens if you change the numbers? Or better yet, what happens if you use letters (identifiers) instead? Something like
{ A B C D E F G H }
\<< { D } { Z } LREPL \>>

If I do the above, I get the expected result:
{ A B C Z E F G H }

What result do you get?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming puzzles: processing lists! - DavidM - 05-27-2017 08:07 PM



User(s) browsing this thread: 4 Guest(s)