From 383dfc97cc5dbfef012b7738e7e31752bf5df3b5 Mon Sep 17 00:00:00 2001 From: AnteronGitHub Date: Fri, 22 Jan 2016 14:29:12 +0200 Subject: [PATCH] =?UTF-8?q?koodi=20p=C3=A4ivitetty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- koodi.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koodi.rb b/koodi.rb index f6a6e73..29a5f13 100644 --- a/koodi.rb +++ b/koodi.rb @@ -1 +1,5 @@ -# kirjoita koodi tänne \ No newline at end of file +# kirjoita koodi tänne +def osa(a) + eka = a[0] + a.reject {|entry| entry <= eka} +end \ No newline at end of file