Skip to content

Instantly share code, notes, and snippets.

@bielawb
Created October 9, 2020 21:33
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 bielawb/a324e12eb59a5d51357a37f97e431951 to your computer and use it in GitHub Desktop.
Save bielawb/a324e12eb59a5d51357a37f97e431951 to your computer and use it in GitHub Desktop.
Ostatnie X spełniających warunek.
(1..100).Where(
{ $_ % 2 },
'Last',
5
)
<#
Na wyjściu:
91
93
95
97
99
#>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment