>> 함수형 프로그래밍을 적극 활용하자>> 나름 where, expand, reduce 사용법 좀 익히기 좋은 문제였던듯.. ㅎㅎ import 'dart:math';void makeList(int n, List> p) { for (int i = 1; i > p = []; makeList(1000, p); var pita = p .where((list) { return (pow(list[0], 2) + pow(list[1], 2) == pow(list[2], 2)); }) .expand((list) => list) .toList(); print(pita); var mul = pita.reduce((a, b) => a * b); print(mul);}