in reply to Perl code for a Histogram

Simple perl -e 'system( qq{histosample.clj}, @ARGV )', provided [*]
#!/usr/bin/env clj (ns histosample (:use [incanter core charts] [clojure.contrib.duck-streams :only (read-lines)])) (def data (if *command-line-args* (map #(Integer/parseInt %) (read-lines (first *command-line-ar +gs*))) (take 500 (iterate (fn [_] (int (rand 100))) 0)))) (let [max (reduce max data) min (reduce min data) nbins (Math/abs (- ma +x min))] (view (histogram data :nbins nbins :x-label "Value")))

The cake is a lie.
The cake is a lie.
The cake is a lie.