This file contains hidden or 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
| #!/usr/bin/ruby | |
| require 'nokogiri' | |
| require 'open-uri' | |
| class PlayEntry | |
| def initialize(package) | |
| @package = package | |
| url = "https://play.google.com/store/apps/details?id=#{package}" |
This file contains hidden or 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
| module Main where | |
| -- fold an operation down a list of lists | |
| foldleach :: (a -> b -> a) -> a -> [[b]] -> [a] | |
| foldleach f b xs = map (foldl f b) xs | |
| foldl1each :: (a -> a -> a) -> [[a]] -> [a] | |
| foldl1each f xs = map (foldl1 f) xs | |
| -- find combinations from list |
NewerOlder