Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
December 05, 2019

Show date: December 05, 2019

YouTube URL:


REPL exercise

Given a 16 bit number I want to generate the bytes associated with its little-endian representation. Maybe that's too easy if you delve into some hosty API, but it also seems like one that you could pull off in a REPL session.

Example: for 96503 generate the sequence of bytes 0xf7 0x78 0x01 0x00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.