Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
157 lines (138 sloc) 6.87 KB
<!DOCTYPE html>
<html lang="en">
<title> Scala Puzzlers </title>
<link rel="shortcut icon" href="img/favicon.gif" type="image/x-icon" />
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/prettify.css" type="text/css" rel="stylesheet" />
<script src="" type="text/javascript"></script>
<script type="text/javascript" src="js/prettify.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-31486114-1']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
<body data-spy="scroll" data-target=".subnav" data-offset="50"">
<!-- Navbar
================================================== -->
<div class="navbar navbar-fixed-top">
<a target="_blank" href="">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="" alt="Fork me on GitHub">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<a class="brand" href="/">Scala ?uzz<img src="img/l.png" alt="l" style="padding-bottom:10px;padding-left:2px;padding-right:2px"/>ers</a>
<div class="nav-collapse collapse">
<ul class="nav">
<a id="navbar-home" href="index.html">Home</a>
<a id="navbar-contribute" href="contribute.html">How to Contribute</a>
<a id="navbar-contact" href="contact.html">Contact</a>
<a id="navbar-about" href="about.html">About</a>
<script type="text/javascript">
String.prototype.endsWith = function(suffix) {
return this.indexOf(suffix, this.length - suffix.length) !== -1;
var pathToID = {
"/" : '#navbar-home',
"index.html" : '#navbar-home',
"contribute.html" : '#navbar-contribute',
"contact.html" : '#navbar-contact',
"about.html" : '#navbar-about'
$(document).ready(function() {
function mapPathToID(path) {
var key;
var id = null;
for (key in pathToID) {
if (path === key) {
id = pathToID[key];
return id;
var id = mapPathToID(window.location.pathname);
if (id != null) {
<div class="container-fluid">
<div class="row-fluid">
<div class="span3">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">Puzzlers</li>
<li><a href="/#pzzlr-001" id="pzzlr-001">Hi There!</a></li>
<li><a href="/#pzzlr-002" id="pzzlr-002">Match Me</a></li>
<li><a href="/#pzzlr-003" id="pzzlr-003">UPSTAIRS downstairs</a></li>
<li><a href="/#pzzlr-004" id="pzzlr-004">The Trouble With Traits</a></li>
<li><a href="/#pzzlr-005" id="pzzlr-005">The Trouble With Traits 2</a></li>
<li><a href="/#pzzlr-006" id="pzzlr-006">The Missing List</a></li>
<li><a href="/#pzzlr-007" id="pzzlr-007">Seeing Double</a></li>
<li><a href="/#pzzlr-008" id="pzzlr-008">Captured by Closures</a></li>
<li><a href="/#pzzlr-009" id="pzzlr-009">Map Comprehension</a></li>
<li><a href="/#pzzlr-010" id="pzzlr-010">Init You, Init Me</a></li>
<li><a href="/#pzzlr-011" id="pzzlr-011">A Case of Equality</a></li>
<li><a href="/#pzzlr-012" id="pzzlr-012">If At First You Don't Succeed...</a></li>
<li><a href="/#pzzlr-013" id="pzzlr-013">To Map, or Not to Map</a></li>
<li><a href="/#pzzlr-015" id="pzzlr-015">Private Lives</a></li>
<li><a href="/#pzzlr-016" id="pzzlr-016">Self: See 'Self'</a></li>
<li><a href="/#pzzlr-017" id="pzzlr-017">One Egg or Two..?</a></li>
<li><a href="/#pzzlr-018" id="pzzlr-018">Return to Me!</a></li>
<li><a href="/#pzzlr-019" id="pzzlr-019">Implicitly Surprising</a></li>
<li><a href="/#pzzlr-020" id="pzzlr-020">One Bound, Two to Go</a></li>
<li><a href="/#pzzlr-021" id="pzzlr-021">Views From the Top</a></li>
<li><a href="/#pzzlr-022" id="pzzlr-022">Count Me Now, Count Me Later</a></li>
<li><a href="/#pzzlr-023" id="pzzlr-023">Information Overload</a></li>
<li><a href="/#pzzlr-024" id="pzzlr-024">What's In a Name?</a></li>
<li><a href="/#pzzlr-025" id="pzzlr-025">$!.*% Iterators!</a></li>
<!-- 26 'reserved' for Scalaz - suggestion by A.P. Marki -->
<li><a href="/#pzzlr-027" id="pzzlr-027">I Can Has Padding?</a></li>
<li><a href="/#pzzlr-028" id="pzzlr-028">Cast Away</a></li>
<li><a href="/#pzzlr-029" id="pzzlr-029">Pick an Int, Any Int!</a></li>
<li class="divider"></li>
</div><!--/.well -->
<div id="prime-space" class="span9">
<div class="headline-unit">
This website, which is maintained by <a href="">Andrew Phillips</a> and <a href="!/higherkinded">Nermin Serifovic</a>, has been created with the purpose of collecting scattered examples of Scala puzzlers in a central location on the web to portray some of Scala's quirks. Furthermore, the goal was to educate as well as ultimately help point out areas of the language that could be made less confusing.
We would like to extend special thanks to <a href="!/grylix">Dominik Gruntz</a>, who not only contributed a large portion of puzzlers, but has also made this website better by providing constant feedback and suggestions.
<footer class="footer">
Copyright &copy; 2012, Andrew Phillips and Nermin Serifovic