An open API service indexing awesome lists of open source software.

https://github.com/mrcsparker/hash_to_array

Simple library to convert nested hashes to two arrays - one for keys and one for values.
https://github.com/mrcsparker/hash_to_array

Last synced: 2 months ago
JSON representation

Simple library to convert nested hashes to two arrays - one for keys and one for values.

Awesome Lists containing this project

README

        

h1. HashToArray

Simple library that converts a nested hash (or a non-nested hash) to two arrays.
One array contains the hash keys and the other hash contains the hash values.

This is meant to be an example of how to create a C extension for ruby.

h3. Usage

ruby extconf.rb
make
ruby test.rb

Check out test.rb

h3. License

(c) 2011-2013 Chris Parker, released under the MIT license