3 ms·
Oh cool! ;; Inputs (one per line): '(a b c d) ;; Desired output: '(1 2 3 4) ;; Suggestions: ;; No matches found. Damn :(
by dleslie 10y ago
Oh cool!
;; Inputs (one per line):
'(a b c d)
;; Desired output:
'(1 2 3 4)
;; Suggestions:
;; No matches found.
Damn :(
- dleslie 10y agoOn further inspection it seems severely limited: ;; Inputs (one per line): '(a b c d) ;; Desired output: '(a b) ;; Suggestions: ;; No matches found.
- bloaf 10y agoInteresting that this fails, since removing one element was an example they considered. Maybe they should include the length of the lists as "magic numbers" which they then use to generate functions. For example, here they might generate the functions take_the_first_2 and remove_the_last_(4-2) as candidates.
- lukeschlather 10y agoThe example they considered was removing the first element of the list, while that example is removing the last element. In terms of computational cost, this makes sense: removing the last element of a list in lisp takes linear time with the size of the list, while removing the first element takes constant time. (If you're returning a copy this is moot, but if you're modifying in-place this could be a problem.)
- azeirah 10y agoPerhaps this suggest thing could do with some kind of a genetic algorithm searching for new functions that seem to do the right thing..
- catnaroek 10y agoWould you actually want to use software written like this? You submit a bug report or feature request, and the maintainer tells you: “Okay, let's see whether my AI can make sense of it...”
- taneq 10y ago> “Okay, let's see whether my AI can make sense of it...” "I'll pass your feedback on to the devs" by any other name would sound as sweet.
- deleted 10y ago[deleted]