Comments (1)
This seems to be because (< foo)
always returns true
for any value of foo
, so any single-form answer will cause the anonymous function in the koan to return its second argument. This then causes the whole reduce
expression to return "longest"
, since "longest"
is the last item in the vector of words.
This could be fixed by adding a shorter word or two to the vector after "longest"
, or perhaps by splitting the input up into two adjacent inputs so that the user is forced to provide <
with two arguments.
from clojurescript-koans.
Related Issues (20)
- I am unable to run clojurescript koans in Firefox under Ubuntu 64bit HOT 2
- Creating Functions 3 doesn't let you through HOT 8
- Koans do not load in many browsers HOT 8
- Remember that a set is a *mathematical* set has a built in bug HOT 8
- clojurescriptkoans.com : Uncaught Invalid match arg: /\(quote (.*?)\)/ HOT 2
- Russian translation HOT 4
- higher order functions: http://clojurescriptkoans.com/#higher-order-functions/9 HOT 2
- single quote symbol ' can be submitted instead of significant answers, and can pass HOT 3
- Reader macro #_ ("discard form") can be used to submit insignificant answers
- #runtime-polymorphism dives into an infinite loop HOT 1
- Getting a false negative in the #destructuring/3 koan HOT 2
- Destructuring 7 wont pass
- Conditionals crash Chrome ios
- Travis CI build errors
- UX Suggestion HOT 6
- [Suggestion] Information missing for the atoms topic resolution
- [Suggestion] Difficulty with "Iteration can be used for repetition"
- [BUG] List returned in higher-order-functions/7 where vector is expected HOT 1
- Use proper breaking indentation?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clojurescript-koans.