Smap
SmapIE
New program
Curry
Prolog
Haskell
Open program by ID
Browser
Dashboard
Programs on Smap
Most recent
Most favorited
Tags on Smap
All tags
Sign in
Help
Source code
Language:
Curry
last (_ ++ [e]) = e sol :: [Int] -> [Int] sol (_ ++ l ++ _) | 2 * (head l) == (last l) = l main = sol [3, 1, 2, 4, 5, 0, 6]
Execution result
No execution result yet.
PAKCS 3.7 /all-values
PAKCS 3.7 /one-value
KiCS2 3.1 /all-values
KiCS2 3.1 /one-value
Reset
Clear
Options
New Curry program
Reload program 80
View in Browser
Program ID:
80
Title:
Exercise 3
Language:
Curry
Author:
Maurycyt
Version:
1
Program information