Closed Wilfred closed 7 years ago
;; Inputs (one per line): 2 3 ;; Desired output: 8 ;; Suggestions: (expt 2 3) ;=> 8 (apply #'expt (list 2 3)) ;=> 8 (apply #'* (-repeat 3 2)) ;=> 8 (apply #'* (make-list 3 2)) ;=> 8 (-product (-repeat 3 2)) ;=> 8
Currently we suggest (apply f (list arg1 arg2)) too frequently when we already have (f arg1 arg2).
(apply f (list arg1 arg2))
(f arg1 arg2)
We should possibly penalise calls to list too.
list
Done in 0172753.
Currently we suggest
(apply f (list arg1 arg2))
too frequently when we already have(f arg1 arg2)
.