hoplon / javelin

Spreadsheet-like dataflow programming in ClojureScript.
803 stars 44 forks source link

Fix bug where formulet rejects an odd number of binding pairs #38

Closed daveyarwood closed 4 years ago

daveyarwood commented 6 years ago

I found a bug where formulet throws an assertion error, "first argument must be a vector of binding pairs," when provided with an odd number of binding pairs. Looks like a simple typo where we should be counting bindings instead of binding-pairs. I've lifted the assert outside of the let to make this extra clear.

I've adjusted the test cases to demonstrate the bug in the absence of this fix.