duplicates = multiple editions
A Classical Introduction to Modern Number Theory,Kenneth IrelandMichael Rosen
A Classical Introduction to Modern Number Theory,Kenneth IrelandMichael Rosen
| function build_hierarchy(list, key, tuple_func) { | |
| var direct_hierarchy = list | |
| .map(tuple_func) | |
| .reduce(function(obj, tuple) { | |
| tuple[0] in obj ? obj[tuple[0]].push(tuple[1]) : obj[tuple[0]] = [tuple[1]]; | |
| return obj; | |
| }, {}); | |
| var hierarchy = Object.keys(direct_hierarchy) | |
| .reduce(function(obj, type) { |
| public class AccessBenchmark { | |
| private final long N = 1000000000; | |
| private static final int M = 1; | |
| private LocalClass instanceVar; | |
| private class LocalClass { | |
| public void someFunc() {} | |
| } |
| # maybe.py - a Pythonic implementation of the Maybe monad | |
| # Copyright (C) 2014. Senko Rasic <[email protected]> | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: | |
| # |
| import Data.Function (on) | |
| import Data.List (sort, sortBy, groupBy, nub) | |
| import Data.List.Utils (replace) | |
| import Data.Ord (comparing) | |
| import Data.Either (rights) | |
| import Control.Monad (liftM) | |
| import System.Environment (getArgs) | |
| import Text.Parsec.Error (ParseError) |