Skip to content

Instantly share code, notes, and snippets.

@skeeto
skeeto / dashtest.el
Created July 29, 2017 14:59 — forked from Wilfred/dashtest.el
dolist vs mapcar
;;; dashtest.el --- benchmarking dash -*- lexical-binding: t -*-
(defmacro --map-mapcar (form list)
(declare (debug (form form)))
`(mapcar (lambda (_) ,form) ,list))
(defmacro --map-loop (form list)
(declare (debug (form form)))
(let ((result-sym (make-symbol "result")))
`(let (,result-sym)
import sys
import pprint
d = {}
seen = set()
keys = []
icon = None
for line in sys.stdin:
off = line.find(' icon =')
@skeeto
skeeto / go.mod
Last active May 29, 2024 17:08 — forked from lorenzotinfena/sort.go
Efficient (but ugly) radix sort implementation for uint32
module x
go 1.21.0