X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=docs%2FGoalfile.pod;fp=docs%2FGoalfile.pod;h=9031780dff73f15f229e7e45839b584eafa68a32;hb=6049de701cea350b3f474e4c1ff16836baa8e2fb;hp=85d19ba8fed6408bb1acc8eab9a4ff639bb064a6;hpb=be61a8a416b1bef88a416579cc663f1849ccf1cf;p=goals.git diff --git a/docs/Goalfile.pod b/docs/Goalfile.pod index 85d19ba..9031780 100644 --- a/docs/Goalfile.pod +++ b/docs/Goalfile.pod @@ -46,6 +46,24 @@ For example: Returns the filename extension. +=head3 filter (pattern, list) + +For example: + + filter ("a+", ["a", "b", "ca"]) ⇒ ["a", "ca"] + +Filter a list returning only the elements that match the extended +regular expression C. + +=head3 filter-out (pattern, list) + +For example: + + filter-out ("a+", ["a", "b", "ca"]) ⇒ ["b"] + +Filter a list returning only the elements that I match the +extended regular expression C. + =head3 head (list) For example: