[ Launch: Negative Stacked Bar Charts ] 8d91f47f6665ee3c1e37 by teosz[ Launch: Negative Stacked Bar Charts ] 0addb95de510e178bcd2 by teosz[ Launch: Negative Stacked Bar Charts ] 6116099 by enoex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
excludeIndex :: [a] -> Integer -> [a] | |
excludeIndex list index = map snd $ filter (\x -> fst x /= index) $ zip [0..] list | |
input :: [Integer] | |
input = [1, 3, 5, 5, 2, 3] | |
len :: Integer | |
len = fromIntegral $ length input | |
allLists :: [[Integer]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hash | |
class ::Hash | |
def method_missing(name) | |
return self[name] if key? name | |
self.each { |k,v| return v if k.to_s.to_sym == name } | |
super.method_missing name | |
end | |
end |
[ Launch: Negative Stacked Bar Charts ] 0addb95de510e178bcd2 by teosz[ Launch: Negative Stacked Bar Charts ] 6116099 by enoex