Skip to content

Instantly share code, notes, and snippets.

@hipertracker
Created January 27, 2009 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hipertracker/53353 to your computer and use it in GitHub Desktop.
Save hipertracker/53353 to your computer and use it in GitHub Desktop.
#!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