Skip to content

Instantly share code, notes, and snippets.

View tildeleb's full-sized avatar

Lawrence E. Bakst tildeleb

View GitHub Profile
@tildeleb
tildeleb / flatten.go
Last active June 3, 2019 04:30
flatten code in Go
// Copyright © 2019 Lawrence E. Bakst. All rights reserved.
//
// I wanted to code this in Go.
// Unlike Ruby, Python, and others, Go doesn't have a built-in list type.
// So I wrote a simple list package based on the way lists were originally designed in Lisp.
// See the code at:
// https://github.com/tildeleb/lispylist
// The code there has a full test suite and doc.
// This code is https://github.com/tildeleb/lispylist/example/example.go

Keybase proof

I hereby claim:

  • I am tildeleb on github.
  • I am tildeleb (https://keybase.io/tildeleb) on keybase.
  • I have a public key ASDRf7IjCJaNA4EJZgokOiTbfACxh27T4hY5_Va9iaQ5mgo

To claim this, I am signing this object:

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <dirent.h>
#include <sys/types.h>
#include <linux/inotify.h>
#include <sys/poll.h>
#include <sys/stat.h>
#include <time.h>