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

https://github.com/konn/ruby-haskell

A library to use Haskell's ++ operator in Ruby.
https://github.com/konn/ruby-haskell

Last synced: 2 months ago
JSON representation

A library to use Haskell's ++ operator in Ruby.

Awesome Lists containing this project

README

        

* What is this

A library to use Haskell's ++ operator in Ruby.

* How to use

Add following line to your Ruby script:

require 'haskell'

* Example

p [1, 2, 3] # => [1, 2, 3]
p [1, 2, 3] ++ [2, 3, 4] # => Error!
require "haskell"
p [1, 2, 3] ++ [2, 3, 4] # => [1,2,3,2,3,4]
p "hogehoge" ++ "fugafuga" # => "hogehogefugafuga"

* Author

Hiromi Ishii