Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I tried exacly the same and still had error...
)0)0)0000))0
Fixed.
That code will return true for any string with multiple dots like this "8...1.9."
there is always one god among us who made kata with only one line
not sure trolling or serious?!
The @JDeBolt series might be missing some more things, so there might be some hope left. There are ( quite a few ) more kata on linked lists ( or streams ) though, so if you want to include a couple of things that haven't been done, you'll have to find all of them ( you might also check the content issues to see if there's a list of duplicate kata on this subject ), and exhaustively check which features they cover and which they skip.
I'm not sure it's worth it.
Wow, I hadn't seen this kata series! I'll hence delete this kata as it is, as you said, pointless to do what has already been done!
I believe there's a 2kyu kata on codewars (which I haven't done yet, but will for sure)
EDIT: Oh, you are the one who did it ^^
All of this has been done before - see the "Linked list" series by @JDeBolt. ( One of the folds may be missing. )
Consistency would be nice. Your function names are all over the place and your argument order is not consistent ( or standard ) either.
Why is
listMapTwoParams
limited to lists of the same length?Why can't lists be infinite? You're missing the best feature of linked lists because you're letting yourself be restricted by a strict language. ( Actually, best feature and the only feature that makes it worthwhile doing this anyway. If we have already arrays, why would we have linked lists with worse performance? )
Alright! I've reworked the description. Is it clear enough? If it isn't, what should I make clearer ?
Thanks guys! very interesting
https://en.wikipedia.org/wiki/Lisp_(programming_language)#History
car
andcdr
originate from LISP as far as I know, but they are maybe rooted somewhere in pre-computing era?https://en.wikipedia.org/wiki/CAR_and_CDR
I am mostly asking about where the names come from. I find it easier to understand the code if the var names have meaning (eg.
head
andtail
are obvious, butcar
makes me think of the thing with wheels, andcdr
makes me think ofCD-ROM
)I'm just curious, is all :)
Loading more items...