Find Jobs
Hire Freelancers

Mentor help

£18-36 GBP / hour

クローズ
投稿日: 約6年前

£18-36 GBP / hour

Greetings, I have a course now in JS and functional programming and sometimes i need some help. I need a mentor that is willing to solve my questions and help me get through my problems. If you know how to write a functional and clean code please message me. Just a small test to see if you are capable to help me > We have a function cons : const cons = (x, y) => f => f(x, y); Cons store value to a variable pair : const pair = cons(5, 3); Create two functions car and cdr which each of them gonna return a argument of each. car(pair); // 5 cdr(pair); // 3 Each function should be written in one line.
プロジェクト ID: 16370987

プロジェクトについて

8個の提案
リモートプロジェクト
アクティブ 6年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
この仕事に8人のフリーランサーが、平均£23 GBP/時間で入札しています
ユーザーアバター
Have the answer.. Please inbox to get my answer..Hope its correct Thanks!
£27 GBP 40日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
Good afternoon, In response to your question, I'll give you your first lesson here. Your function calls at the end of your question are incorrect. Your initial function is a partial application: const cons = (x,y) => f => f(x,y) This means you need to first pass some x and y value to cons and then pass a function to that. You have it backwards in the code you posted. It would go like this: const cons = (x,y) => f => f(x,y) const pair = cons(5,3) const car = (x,y) => x const cdr = (x,y) => y pair(car) // returns 5 pair(cdr // returns 3 As you'll notice, you have to pass functions to pair in order to complete the partial application. I can give you more well explained lessons like this through whatever your preferred platform is. I'm located in New York, currently. But I can be flexible with my availability. So whatever time works best for you can work for me as well. I look forward to hearing more from you soon. Best regards, Naythan
£22 GBP 40日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
Functional JS Expert here speaking excellent English and based in Poland. Please check my github for funcional JS examples.
£30 GBP 40日以内
0.0 (0 レビュー)
0.0
0.0

クライアントについて

NORWAYのフラグ
Stavanger, Norway
5.0
1
お支払い方法確認済み
メンバー登録日:10月 9, 2016

クライアント確認

このクライアントからの他の仕事

Design project
$30-250 USD
Design take away menu
€30-250 EUR
ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。