Created
January 27, 2009 13:55
-
-
Save hipertracker/53353 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!ruby19 | |
# encoding: utf-8 | |
alias :λ :lambda | |
π = Math::PI | |
hello_world = λ{|subject| "Hello, #{subject}! π is #{π}"} | |
puts hello_world["world"] # => Hello, world! π is 3.14159265358979 | |
puts "λπ".length # => 2 | |
# src: http://blog.nuclearsquid.com/writings/ruby-1-9-encodings | |
# PHP | |
$ php -r '$bąk = "zażółć gęslą jaźń"; echo "\n$bąk\n"; ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment