yhara/biwascheme — Issue #27: Broken pair detection for assoc, etc.
Author: rpdillon
Created: 2011-10-09 17:08:44+00:00
State: open

In line 14404 and 14421 of biwascheme.js, assoc checks for the presence of a pair by running x.car.car though an if(...) statement. This presents a type 2 error in cases where the car of the pair is anything that would return false, like 0 or #f.
I fixed it in my tests by replacing:
```javascript
if(x.car.car) {
...
}
```

with

```javascript
if(typeof(x.car.car) != "undefined") {
...
}
```