File: normalizeTest1.fut

package info (click to toggle)
haskell-futhark 0.25.32-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,236 kB
  • sloc: haskell: 100,484; ansic: 12,100; python: 3,440; yacc: 785; sh: 561; javascript: 558; lisp: 399; makefile: 272
file content (22 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- ==
-- input {
--   1
--   2.0
--   3
--   4
--   5.0
--   6
-- }
-- output {
--   5
-- }
def tupfun(x:  (i32,(f64,i32)), y: (i32,(f64,i32)) ): i32 =
    let (x1, x2) = x
    let (y1, y2) = y in
        x1 + y1
    --let (x0, (x1,x2)) = x in
    --let (y0, (y1,y2)) = y in
    --33

def main (x1: i32) (y1: f64) (z1: i32) (x2: i32) (y2: f64) (z2: i32): i32 =
    tupfun((x1,(y1,z1)),(x2,(y2,z2)))