Functional Pe(a)rls

  • 4,034 views
Uploaded on

\"Lightning\" talk given at IPW 2008 on 5 fun things to do with Perl for functional programming. …

\"Lightning\" talk given at IPW 2008 on 5 fun things to do with Perl for functional programming.
Warning: may contain Evil.

More in: Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
4,034
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
10
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. osfameron Functional Pe(a)rls
  • 2. Functional pearls x5
  • 3. Functional Pe(a)rls 5 min
  • 4. Functional pearls eeek!
  • 5. 1. map, grep, join map
  • 6. 1. map my @names = ● qw/ Pippo Pluto Pinco /;
  • 7. 1. map ●Hello Pippo! ●Hello Pluto! ●Hello Pinco!
  • 8. 1. map ● my @greetings; ● for (@names) { ● push @greetings, Hello $_!; ●}
  • 9. 1. map ● my @greetings = map { Hello $_! } @names
  • 10. 1. map, grep, join grep
  • 11. 1. grep ● Names that contain “i” –Pippo –Pinco
  • 12. 1. grep