pkt1583 / functionaljava

Automatically exported from code.google.com/p/functionaljava
0 stars 0 forks source link

Bug in List#init #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Apply init to the list [1, 2, 3, 4]
2.
3.

The problem appears to be the line in init:
a.snoc(head());

which, presumably, is the same as:
a.snoc(this.head());

rather than:
a.snoc(ys.head());

What is the expected output?
[1, 2, 3]

What do you see instead?
The list [1, 1, 1]

What version of the product are you using?
V3.0
On what operating system?
Windows Vista

Please provide any additional information below.

Original issue reported on code.google.com by kenb...@googlemail.com on 26 Jan 2012 at 2:50