UNPKG

brain-games-irastypain

Version:

This package is implementation of first project at Hexlet

6 lines (4 loc) 214 B
import { car, cdr, cons } from 'hexlet-pairs'; export const makeQA = (question, answer) => cons(String(question), String(answer)); export const getQuestion = qa => car(qa); export const getAnswer = qa => cdr(qa);