Skip to content

Commit

Permalink
P2: Functor.map を使用しない
Browse files Browse the repository at this point in the history
  • Loading branch information
Seasawher committed Apr 21, 2024
1 parent fdd41f1 commit fbae9d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Src/Problem2.lean
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ def myButLast (l : List α) : Option α :=
none
else
let i := l.length - 2;
id <$> l[i]?
match l[i]? with
| some x => some x
| none => none
-- sorry

-- The following codes are for test and you should not edit these.
Expand Down

0 comments on commit fbae9d6

Please sign in to comment.