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.
- Host: GitHub
- URL: https://github.com/konn/ruby-haskell
- Owner: konn
- Created: 2009-08-12T14:58:00.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2009-08-12T15:02:05.000Z (almost 16 years ago)
- Last Synced: 2025-01-23T16:55:01.748Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 150 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
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